Hi all,
Can anyone please tell me how to recompile Apache/1.3.19 (Unix)
(Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.0.4pl1
mod_perl/1.24_01 on Red Hat Linux 7.1 to work with MySQL?
All were installed using Red Hat RPMs. (Is this where I screwed up from
the start?)
Anyway, MySQL ( ver 11.13 Distrib 3.23.38, for redhat-linux-gnu (i386)
) is running just fine. I can login, create dbs and tables, etc. but I
always get Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/book/guestbook/dbconnect.php on line 2
The code in my dbconnect.php looks like this:
<?php
if (!($mylink = mysql_connect("my_hostname","my_usrnme","my_psswd")))
{
print "<h3>could not connect to database</h3>\n";
exit;
}
mysql_select_db("book");
?>
Through much reading I'm learning that I need to "recompile" PHP by
running ./configure from the "PHP directory " but where is it??
Somebody, please HELP !! :-)
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]