PHP ファイル内でinclude_pathを設定

2010年09月27日(月)

include_pathをファイルで設定するのはよくあるので
メモっておきます、今更。

$add_include_path="/home/username/PEAR/";
set_include_path(get_include_path() . PATH_SEPARATOR . $add_include_path);