Jump to content


Photo

PEAR can't find DB.php


  • Please log in to reply
2 replies to this topic

#1 jt45

jt45
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 14 October 2006 - 05:52 PM

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.

#2 jt45

jt45
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 14 October 2006 - 06:00 PM

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


#3 jt45

jt45
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 October 2006 - 01:57 AM

Find the solution. Had to add /usr/share/php to the include_path of php.ini




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users