PHP require_once 无法打开流权限被拒绝

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

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)