I recently tried to add the php_mssql extention in a default install of WampServer 2.0i on an XP SP3 box.
The error is:
"PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.0/ext/php_mssql.dll' - The specified module could not be found.'
After downloading the file and dropping into the specified directory, the same error appears. Where do I find a copy of the DLL that works with WAMP's php 5.3 install?
I managed to get this working after 2 days of nearly non-stop testing under Windows. All i did was install the newest version of wamp server (WampServer2.0i). Then from the Addons section of the site downloaded WampServer2-PHP531. This new version comes with the correct MSSQL DLL's. Then select the new PHP Install, from the PHP Versions menu after this I went to the PHP Extensions menu and enabled php_mssql and pdo_mssql. I also made sure the php.ini in the wamp folder was the same as the one in the Windows folder and just in case put a copy of the MSSQL DLL's in the Windows folder with the php.ini and restarted the server and it was working. Remember you need a copy of ntwdblib.dll in the Windows/System32 folder.
I use the following php code to report to me if MSSQL functions where working.
<?php if (function_exists('mssql_fetch_row')) { echo "MSSQL functions are available.<br />\n"; } else { echo "MSSQL functions are not available.<br />\n"; } ?>
the method above didn't work for me, however i did manage to get it working again on 5.3.0. for anyone else having problem, here is what i did:
1. fresh install of wamp 2.0i 2. install php5.3.1 from the addon page 3. copy the php_mssql.dll from the 5.3.1 to the 5.3.0 ext folder and ntwdblib.dll from the c:/windows/system32 folder to the php 5.3.0 root folder 4. enable the extension in php.ini 5. restart server and voila it work again.
Edited 1 time(s). Last edit at 03/24/2010 09:25PM by neogen.