I am working in php project, its giving the error as:
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
But in \ExceptionHandler.php
file, the 20th line is
require_once ROOT_PATH . '/lib/confs/Conf.php';
And I have the file Conf.php under the lib/confs/Conf.php
itself, even though I am getting the error.
What may be the problem. Thanks in advance.
I would go through the following assumptions debugging this,
If none of the above is the case, I'm not sure.
Some libraries must be installed into a directory that is listed in PHP's library path. In these situations you have a few options:
set_include_path
without overwriting the old path (use get_include_path
in combination with PATH_SEPARATOR
).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With