Re: problem with PDO ODBC on Win2k3 server
[email protected] (Frostillicus) Mon, 09 Mar 2009 21:13:44 +1100
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
I've actually solved it. By comparing the timestamps of the DLL files, and downloading various versions of the ZIP package, I found out that I was copying a thread-safe DLL into a non-thread-safe installation. Is there a way to tell which version you have installed? I didn't install it originally on this server. Hopefully this might one day help somebody making the same mistake if they find this message. Frostillicus wrote: > I'm having a problem whereby PHP can't seem to load the php_pdo_odbc.dll > extension. The server has PHP 5.2.8 installed to "C:\Program Files\PHP" > and in the "C:\Program Files\PHP\ext" folder I have php_pdo.dll and > php_pdo_odbc.dll. At the bottom of the only php.ini file on the server > are the following lines: > > [PHP_PDO] > extension=php_pdo.dll > > [PHP_PDO_ODBC] > extension=php_pdo_odbc.dll > > The extension directory is set to the following: > > extension_dir ="C:\Program Files\PHP\ext" > > The system event viewer logs the following event: > > Application popup: Warning : PHP Startup: Unable to load dynamic library > 'C:\Program Files\PHP\ext\php_pdo_odbc.dll' - The specified module could > not be found. > > I have checked that the file is actually there, and I've also tried > adding a trailing slash to the extension_dir directive and restarting > IIS to see if that helped. It still can't load the ODBC module. > > any ideas?