Waqas Rana Waqas Rana - 2 months ago 6
Apache Configuration Question

Fatal error required once()

i am getting this error when i run my project . even that i have file base.php in prpc folder .


Fatal error: require_once(): Failed opening required 'prpc/base.php'
(include_path='C:\xampp\htdocs\web_www_root/cms-includes:C:\xampp\htdocs\web_www_root/cms-includes/pear:C:\xampp\htdocs\web_www_root/cms-includes/:.;C:\xampp\php\PEAR;C:\xampp\htdocs\web_www_root') in C:\xampp\htdocs\web_www_root\cms-includes\prpc\client2.php on line
3.


thanks to All . please give any suggestion

Answer

Sometimes relative path doesn't work.It depends upon the server configurations.

You should provide full path to the file

require_once("C:\xampp\htdocs\web_www_root\cms-includes\prpc\base.php");

I,also had faced the similar issue.And above solution worked for me.Better,if you can give a try.