PHP require_once 无法打开流权限被拒绝
即使更改文件夹的权限后,我仍然收到以下错误.我不知道该怎么办.不知道为什么.任何帮助将不胜感激.我正在使用 Cent-os 服务器,这是一个 php 脚本.
I keep getting the error below even after changing the permissions of the folder. I don't know what to do. Not sure why. Any help would be greatly appreciated. I'm working with Cent-os server and this is a php script.
require_once(mysql_connect.php) [function.require-once]: 失败打开流:权限被拒绝日期/时间:7-28-2009 20:09:44
require_once(mysql_connect.php) [function.require-once]: failed to open stream: Permission denied Date/Time: 7-28-2009 20:09:44
推荐答案
问题不是权限问题.我包含的文件名为 mysql_connect.php,我认为它与 mysql 的文件或函数之一冲突,因此服务器为此混淆了我的文件,并且不需要 require_once() 或 include_once() 或 include() 文件.因此权限被拒绝致命错误.我更改了文件的名称,一切都很好.感谢大家试图帮助我.
The problem was not a permission issue. The file I was including was named mysql_connect.php which I think conflicts with either one of mysql's files or functions so the server was confusing my file for that and wouldn't require_once() or include_once() or include() the file. Hence the permission denied fatal error. I change the name of the file and all is well. Thanks to you all for trying to help me out.
相关文章