On Thu, Jun 01, 2000 at 03:17:53AM +0000, Thiago wrote > I'm tring ti use PHP with MySQL, > but every time I receive this message! > Fatal error: Call to unsupported or undefined function mysql_connect() in > /www/http/mysql_test.php3 on line 12 > > How do I recompile the PHP to enable MySQL support? > Thaks! >
You shouldn't need to. If you have php3 (not php3-cgi) installed: - Install php3-mysql; - Ensure that the line extension=mysql.so appears in /etc/php3/apache/php3.ini - Stop & re-start apache. If you're using php3-cgi: - Install php3-cgi-mysql; - Ensure that the line extension=mysql.so appears in /etc/php3/cgi/php3.ini HTH, John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.mdt.net.au/~john Debian Linux admin & support:technical services