PHP require_once无法打开流权限被拒绝 [英] PHP require_once failed to open stream permission denied

查看:2234
本文介绍了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 ]:failed to
open stream:Permission denied日期/时间: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无法打开流权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆