Re: Php Database

From: Date: Sun, 04 Feb 2001 03:25:31 +0000
Subject: Re: Php Database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38061@lists.php.net to get a copy of this message
> Hi everyone! > To use de DBA database format, first i had to configurate php with > --with-db2 option. All works (configure, make and make install). But the > php script still not works. The line of the script that has a problem > is: > > $id = dba_open ("/home/httpd/html/testes/test.db", "n", "db2"); > > Fatal error: Call to undefined function: dba_open() in > /home/httpd/html/testes/teste.php on line 5 That means the --with-db2 didn't take effect somehow. Check the config.log (?) and config.status (?) files and see if you can find out why configure ignored your --with-db2 [Basically, dig around in every config.xxx file you can find in the PHP source directory, and search for db2] Sometimes it does that and doesn't complain about it for some reason... Also, double-check that the library (the libphp.so thingie) in your .../apache/modules/ directory actually has the date you would expect on it. And, stop your Apache and restart it to get it to load the new PHP library. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38061) next »