On Wed, Feb 09, 2000 at 07:02:56PM +0000, Alisdair McDiarmid wrote > I'm trying to get PHP3 and MySQL to play nice, but they refuse. I want > to load the mysql.so extension, so in the /etc/php3/apache/php3.ini I > put `extension = mysql.so' and checked that extension_dir was correct. > > This didn't work: php3 scripts without dl('mysql.so') in them fail to > work: > > Fatal error: Call to unsupported or undefined function mysql_connect() > in /home/alisdair/public_html/test.php3 on line 4 > > Why isn't it working? Do I have to recompile PHP3 with MySQL support > builtin?
/etc/php3/apache/php3.ini is used by the Apache PHP3 module; if you are running PHP3 as a stand-alone interpreter you should make the same changes to /etc/php3/cgi/php3.ini HTH, John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] "Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark