... require_once($path); chdir($old_dir); // 改回原“参照目录” }. 这样就可以使用import()函数来require文件了,无论包含多少级“参照目录”都是当前文件.
確定! 回上一頁