Help with mysql and PHP

Hi

I am getting the following error when I start up the Apache service

PHP Warning: PHP Startup: Unable to load dynamic library ‘’.\\ext’\\php_mysqli.dll’ - The specified module could not be found.\r
in Unknown on line 0

I cannot for the life of me see why its got two \\ when the line is

extension_dir = ‘.\ext’

I have also tried

extension_dir = “C:\PHP\ext”

To which the error is

PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\\PHP\\ext\\php_mysqli.dll’ - The specified module could not be found.\r
in Unknown on line 0

Can anyone help me get this working

Thanks

Andy

The additional backslash character is an ESCAPE.
In PHP, special characters must be referenced using this format (preceding it with an ESCAPE).
Even though you are working in Windows, try defining your directory with slashes (/) as opposed to the backslash(\)

I have tried the following variations with no luck

; Directory in which the loadable extensions (modules) reside.
;extension_dir = ‘.\ext’
;extension_dir = C:\ext
;extension_dir = “C:\PHP\ext”
;extension_dir = “C:/PHP/ext/”
extension_dir = “./”

The last log was

PHP Warning: PHP Startup: Unable to load dynamic library ‘./php_mysqli.dll’ - The specified module could not be found.\r
in Unknown on line 0
[Tue Oct 18 19:53:00 2011] [notice] Apache/2.2.21 (Win32) PHP/5.2.17 configured – resuming normal operations
[Tue Oct 18 19:53:00 2011] [notice] Server built: Sep 9 2011 10:26:10
[Tue Oct 18 19:53:01 2011] [notice] Parent: Created child process 1144
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.0.2 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.0.2 for ServerName
PHP Warning: PHP Startup: Unable to load dynamic library ‘./php_mysqli.dll’ - The specified module could not be found.\r
in Unknown on line 0
[Tue Oct 18 19:53:01 2011] [notice] Child 1144: Child process is running
[Tue Oct 18 19:53:01 2011] [notice] Child 1144: Acquired the start mutex.
[Tue Oct 18 19:53:01 2011] [notice] Child 1144: Starting 64 worker threads.
[Tue Oct 18 19:53:02 2011] [notice] Child 1144: Starting thread to listen on port 80.

Where is php_mysqli.dll on your computer? Do a file search. If it’s not on your computer at all, you simply need to download it and put it into your extension directory. Though if you don’t know which directory that is, you really shouldn’t be modifyi

The file php_mysqli.dll is in the C:\PHP\ext directory

I have now managed to get PHP to work with mysql.

I copied the dll it was trying to find into the apache bin directory