2006-05-01から1ヶ月間の記事一覧

include_pathを追加する関数

PHP

単純な関数だけど必要な場合もあるので: function addIncludePath($path) { if (file_exists($path)) { $include_path = get_include_path() . PATH_SEPARATOR . $path; if (set_include_path($include_path) !== false) { return true; } } return false; }…