PHP Warning: include() [function.include]: Failed opening '/xxxx.php' for inclusion (include_path='.:/xxx/xxx/php/lib/php') in xxx.php解决方法
发布于 2014-10-05 19:06:48 | 4292 次阅读 | 评论: 0 | 来源: 网友投递
PHP开源脚本语言PHP(外文名: Hypertext Preprocessor,中文名:“超文本预处理器”)是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点,入门门槛较低,易于学习,使用广泛,主要适用于Web开发领域。PHP的文件后缀名为php。
PHP 提示错误: include() [function.include]: Failed opening '/xxxx.php' for inclusion (include_path='.:/xxx/xxx/php/lib/php') in xxx.php原因及解决方法
原因分析:
这种错误一般是由于include的文件不存在造成的,或路经写错导致的include失败,for inclusion后面的意思是指php搜索include_path 也没有到找到文件
php的include在引入文件时会先从你指定的地址读取,如果读取不到会搜索include_path目录.
解决方法:
检查一下你的include路经是否正确.
相关阅读:
PHP Warning: include() [function.include]: Failed opening '/xxxx.php' for inclusion (include_path='.:/xxx/xxx/php/lib/php') in xxx.php解决方法
PHP Warning: include(xxx.php) [function.include]: failed to open stream: Permission denied in原因及解决方法
PHP中include文件出错解决方法
php多次include后导致全局变量global失效的解决方法
php使用pdo连接报错Connection failed SQLSTATE的解决方法
php关闭warning问题的解决方法
php运行报错Call to undefined function curl_init()的最新解决方法
php中出现空白页的原因及解决方法
php实现在同一方法中获取当前方法中新赋值的session值解决方法
php采用curl访问域名返回405 method not allowed提示的解决方法
windows下配置apache+php+mysql各种问题解决方法小结
PHP mkdir()无写权限的问题解决方法