set_include_path

(PHP 4 >= 4.3.0, PHP 5)

set_include_path --  include_path設定オプションをセットする

説明

string set_include_path ( string 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');
?>

ini_set(), get_include_path(), restore_include_path(), include()も参照してください。