gpt4 book ai didi

PHP: fopen() 权限被拒绝

转载 作者:IT王子 更新时间:2023-10-29 00:09:59 28 4
gpt4 key购买 nike

我对这段代码感到困惑:

test.php:

fopen('test.txt','a+');

当我执行它时,我得到一个错误:

Warning: fopen(test.txt): failed to open stream:
Permission denied in /var/www/html/yuelu3/mobile/text.php on line 2

test.txt:

-rwxrwxrwx. 1 jt jt     87 10月  7 20:58 test.txt

问题出在哪里?

非常感谢!我找到了问题,我用FC13,因为SELinux的保护,一些 Action 被拒绝了。所以,我只需要摆脱保护。

最佳答案

关于PHP: fopen() 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3882244/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com