php include

时间:2023-03-09 18:09:11
php include

get_include_path  获取当前 include_path 配置选项的值,在当前代码目录未找到include文件时,则到include_path去include。

set_include_path 设置默认的php include 目录

require_once(PEAR.php) [function.require-once]: failed to open stream,这种情况要么是include_path不是默认路径,要么是对PEAR.php文件没有读写权限。

如果是路径不对,用set_include_path 设置默认路径即可,权限不够则添加相应权限