PHP require_once failed to open stream permission denied(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.
这篇关于PHP require_once 无法打开流权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP require_once 无法打开流权限被拒绝


- SoapClient 设置自定义 HTTP Header 2021-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- Laravel 仓库 2022-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01