Home >Backend Development >PHP Tutorial >提示include_path='C:php5pear'异常怎么解决?

提示include_path='C:php5pear'异常怎么解决?

PHPz
PHPzOriginal
2016-06-13 11:16:212776browse

提示include_path='C:php5pear'异常怎么解决?

安装PHP程序提示“include_path='.;c:\php5\pear'”错误的解决方法

安装PHP程序(比如Discuz、wordpress等等)提示“include_path='.;c:\php5\pear'”错误,以下是Discuz的一个报错。

Fatal error: require_once() [function.require]: Failed opening required './source/class/class_core.php' (include_path='.;c:\php5\pear') in D:\web\BBS\index.php on line 14

解决方法:

1、可能由于你没有传完整php程序,或者php程序中的某个文件损坏,可能会报这个错误。去官网重新下载文件,是虚拟空间的请用官网支持的FTP工具上传php程序。

2、文件权限问题,可能文件或者文件夹权限设置错误引起的。

3、文件夹名含有中文,有时候中文文件夹名也可能引起这个错误,建议改成英文的。

4、修改php程序,这个方法我不推荐(因为有的php程序可能需要改很多很多)

5、修改php.ini配置文件。

; Windows: "\path1;\path2";include_path = ".;c:\php\includes" 改为:; Windows: "\path1;\path2"include_path = "c:\php\includes"

更多相关知识,请访问 PHP中文网!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn