我在PHP項目工作,其給出錯誤爲:致命錯誤:require_once()[function.require]:無法打開所需
Warning:
require_once(ROOT_PATH/lib/confs/Conf.php) [function.require-once]: failed to open stream: No such file or directory in ..\htdocs\GProject\lib\exception\ExceptionHandler.php on line 20
Fatal error: require_once() [function.require]: Failed opening required 'ROOT_PATH/lib/confs/Conf.php' (include_path='.;C:\php5\pear') in ..\htdocs\GProject\lib\exception\ExceptionHandler.php on line 20
但在\ExceptionHandler.php
文件,20日線是
require_once ROOT_PATH . '/lib/confs/Conf.php';
而且我下lib/confs/Conf.php
本身的文件Conf.php,即使我得到的錯誤。
可能是什麼問題。 在此先感謝。
你也可以說定義ROOT_PATH的代碼? – shanethehat 2011-04-13 09:32:19