Jump to content

Archived

This topic is now archived and is closed to further replies.

jt45

PEAR can't find DB.php

Recommended Posts

I receive the following error
Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in /home/aztec/www/estimate/pearviewestimate.php on line 6

Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.:/home/homelinux/phpIncludes:/usr/share/php/Includes:/home/homelinux/phpIncludes/Sites:/home/aztec/phpIncludes:/home/homelinux/selfip/phpIncludes') in /home/aztec/www/estimate/pearviewestimate.php on line 6

php-pear is installed.

Thanks.

Share this post


Link to post
Share on other sites
I notice my php include PATH had /usr/share/php/Includes but there is nothing in that directory.

ls /usr/share/php/
Archive  DB      HTTP.php  Mail      Net  PEAR      System.php  data  docs        peclcmd.php
Console  DB.php  Includes  Mail.php  OS  PEAR.php  XML        doc  pearcmd.php  tests

Share this post


Link to post
Share on other sites
Find the solution. Had to add /usr/share/php to the include_path of php.ini

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.