Hello: I think that I only know about half of what I'm doing here. :-(
Anyways, I am running Red Hat 7.2. I have PHP4 running with Apache, and it seems to be working fine. Today, I installed MySQL via the binary RPMs from the Red Hat site. I installed the following: mysql-3.23.41-1.i386.rpm mysql-devel-3.23.41-1.i386.rpm mysql-server-3.23.41-1.i386.rpm mysqlclient9-3.23.22-6.i386.rpm >From the shell, MySQL seems to work fine. :-) At least phpinfo() works. However, when using the mysql_connect() function within PHP4 code, I get the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/phpinfo.php on line 5 This is the contents of the file: (just guessing at what to put here ... just learning) <?php include "/usr/share/php/PEAR.php"; include "/usr/share/php/DB.php"; include "/usr/share/php/DB/mysql.php"; $link_id = mysql_connect("localhost","root","..."); $result = mysql_list_dbs($link_id); phpinfo(); ?> My problem is that I can't get the MySQL commands to work from within a PHP4 script. I'm assuming that the mysql_connect() function (and many others) are in a library somwhere that I'm not referencing in some .conf file?? Or perhaps the "default" binary RPMs from Red Hat are causing me problems?? Lastly, if I remove the MySQL code from the code above, and run only the phpinfo() function, the result tells me that the ./configure command was run with '--without mysql' (from Red Hat). Perhaps this is the problem?? Is there a way that I can add MySQL support by changing a config file, or do I have to recompile PHP4 with '--with mysql'? I'd appreciate any and all help. Thanks. Brian Schang _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list