Hi Guys,

I'm pretty new at all this still, and was wondering if anyone could point me in the right direction with a problem I'm having installing a PHP script on my dedicated server.

After installing without any problems, I receive the following error:

Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /home/randp/public_html/v3/includes/HTTP/Request.php on line 46

Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/randp/php') in /home/randp/public_html/v3/includes/HTTP/Request.php on line 46

I contacted the server admin guys, who said the error would be resolved if I modified the script to also include the path:
/usr/local/cpanel/3rdparty/lib/php/

The problem is I can't find the detail I need to change in the script. Line 46 of includes/HTTP/Request.php is:
require_once 'PEAR.php';
So now I'm lost as to what to do next... Any ideas would be greatly appreciated guys as i'm a bit out of my depth here!

Pete

    require_once '/usr/local/cpanel/3rdparty/lib/php/PEAR.php';

      God, Thanks so much Dagon...

      It works perfectly... and i cant believe it was as obvious as that....

      Think i'll go and hang my head with shame in the corner for a while.... :o :o

        Write a Reply...