我在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