Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Where is DB.php file located?
May 4, 2005, 9:04 pm
rate this thread
I just downloaded, compiled and installed
PHP 5 in my Redhat Linux enterprise 3 update 4.
I try to connected to PostgreSQL database
I got error on line
Warning: main(DB.php) [function.main]: failed to open stream: No such
file or directory in /var/www/html/hads/PHP/states.php on line 7
Fatal error: main() [function.require]: Failed opening required 'DB.php'
/var/www/html/hads/PHP/states.php on line 7
According to O'Reilly book Programming PHP
by Rasmus Lerdorf & Kevin Tatroe
The PEAR DB library is comes with PHP.
But I coun't find that file anywhere
in the system.
find / -name "DB.php" -print
This is the options I used below for config
'./configure' '--prefix=/usr/local' '--enable-calenda' '--enable-ftp'
Did I do something wrong? Please tell me how to
Thank Q very much in advance!
Re: Where is DB.php file located?
... would give you the pear configuration - if it doesn't, then something's
/usr/local/lib/php which is on your include_path according to the error
message would be consistent with where PEAR normally puts files.
My PHP 5.0.4 installation does NOT have the DB module installed, so it doesn't
come with PHP 5.0.4.
pear install DB
<http://www.andyhsoftware.co.uk/space Space: disk usage analysis tool