I am having problems getting PHP to talk to MySQL. I've posted a message into the MySQL forum too but the fixes mentioned there don't seem to work for me.
Basically, when I try to get PHP to query MySQL I get a message saying "Fatal error: Call to undefined function mysql_connect() in E:\Program Files\Apache\Apache2\htdocs\action\connect.php on line 7". I have provided some further information on the setup of the system below:
> Windows XP Pro SP2
> Apache 2.0.52-win32-x86-no_ssl (E:\Program Files\Apache\Apache2)
> MySQL 4.1.7 (E:\Program Files\MySQL\MySQL Server 4.1)
> PHP 5.0.3-dev (E:\Program Files\php-5.0-Win32)
I have read that this combination requires libMySQLi.dll and php_mysqli.dll, as opposed to the previous libMySQL.dll and php_mysql.dll files. The php_mysqli.dll file is not a problem as it is in the .\ext directory in the main PHP directory. I've uncommented
extension=php_mysqli.dll in the PHP.ini which is saved in the PHP folder as well as in my Windows directory (C:\Windows.0) and even tried saving it in the two system folders (C:\Windows.0\system and C:\Windows.0\system32)
1) I cannot find libMySQLi.dll anywhere on the PC, although I can find libMySQL.dll, which is in the same four directories as the PHP.ini file
2) When I start Apache, I get two windows, both of which say "PHP Startup: Unable to load dynamic library './ext/php_mysqli.dll' - The specified module could not be found."
I get the exact same message if I try to use the standard php_mysql.dll as well. Both files are present in the PHP EXT folder. I've uploaded my PHP.INI and APACHE.CONF files to another site if you want to have a look at them. You'll find them here. If you don't mind taking a look and getting back to me I'd be VERY appreciative!