首页 > php函数 > php set_include_path 函数

php set_include_path 函数

php set_include_path 函数

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 ( )的例子

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

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

实例二:

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

本文地址:http://www.phprm.com/function/e27d58d8f4f08ad94878f103bfb0fa82.html

转载随意,但请附上文章地址:-)

标签:none

发表留言