问题描述
即使更改文件夹的权限后,我仍然会收到以下错误。我不知道该怎么办。不知道为什么。任何帮助将非常感谢。我正在使用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.
推荐答案
问题不是权限问题。我包含的文件命名为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.
这篇关于PHP require_once无法打开流权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!