QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 736|回复: 0

why "permission denied"

[复制链接]
发表于 2005-10-5 14:01:51 | 显示全部楼层 |阅读模式
I encountered a very strange problem today.
My PHP script can't open files whose privilege is 666.

Warning: fopen(./home_page/zzm.txt): failed to open stream: Permission denied in /www/index.php on line 294

Warning: fgets(): supplied argument is not a valid stream resource in /www/index.php on line 295

Warning: fclose(): supplied argument is not a valid stream resource in /www/index.php on line 297

Warning: fopen(./home_page/zzm.txt): failed to open stream: Permission denied in /www/index.php on line 298

Warning: fputs(): supplied argument is not a valid stream resource in /www/index.php on line 299

Warning: fclose(): supplied argument is not a valid stream resource in /www/index.php on line 300

Warning: fopen(./home_page/zzm2.txt): failed to open stream: Permission denied in /www/index.php on line 304

Warning: fputs(): supplied argument is not a valid stream resource in /www/index.php on line 305

Warning: fclose(): supplied argument is not a valid stream resource in /www/index.php on line 306

But their privilege is 666 now:
-rw-rw-rw-  1 root root 4484 May 24 21:38 zzm2.txt
-rw-rw-rw-  1 root root    1 May 21 21:29 zzm.txt


can any one help me?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 02:12 , Processed in 0.049664 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表