一聚教程网:一个值得你收藏的教程网站

热门教程

php set_include_path 函数

时间:2022-07-02 09:56:13 编辑:袖梨 来源:一聚教程网

set_include_path
( PHP 4中“ = 4.3.0 , PHP 5中)

set_include_path -集和include_path配置选项

描述
字符串set_include_path (字符串$ new_include_path )
集和include_path配置选项的期限脚本。

参数

new_include_path
新的价值和include_path


返回值
返回旧include_path中的成功或FALSE的失败。

实例

例如# 1 set_include_path ( )的例子

// Works as of PHP 4.3.0
set_include_path('/inc');

// Works in all PHP versions
ini_set('include_path', '/inc');
?>

实例二:

$path = '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>

热门栏目