PHP: fopen() Permission denied -
i confused code:
test.php:
fopen('test.txt','a+');
when execute it, error:
warning: fopen(test.txt): failed 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
where problem?
thanks lot!i have found problem,i use fc13,because of protect of selinux,some action denied.so, need rid of protect.
try
fopen('/path/to/file/test.txt','a+');
as
fopen('test.txt','a+');
is looking in directory
Comments
Post a Comment