Error loading mssql extention for php.
Posted by: irons (---.roc.choiceone.net)
Date: January 27, 2010 04:31PM

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?


Irons

Options: ReplyQuote
Re: Error loading mssql extention for php.
Posted by: vinc (---.7-87-r.retail.telecomitalia.it)
Date: February 23, 2010 03:07PM

I've the same problem. No way to solve it so far. Any idea?

v

Options: ReplyQuote
Re: Error loading mssql extention for php.
Posted by: irons (---.roc.choiceone.net)
Date: February 23, 2010 03:13PM

No I ended up telling the client to move to Linux with php/mysql. They weren't doing anything crazy and it was a new application.



Edited 1 time(s). Last edit at 02/23/2010 03:14PM by irons.

Options: ReplyQuote
Re: Error loading mssql extention for php.
Posted by: Sh0x (---.dsl.easynet.co.uk)
Date: March 02, 2010 02:09PM

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";
}
?>

Options: ReplyQuote
Re: Error loading mssql extention for php.
Posted by: neogen (---.249.3.98.tor.pathcom.com)
Date: March 24, 2010 03:52PM

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.

Options: ReplyQuote
Re: Error loading mssql extention for php.
Posted by: mgalaz (---.cm.vtr.net)
Date: May 01, 2010 10:44PM

Friends, as I can install php_mssql in IIS 7 server that has PHP 5.3 ?

Options: ReplyQuote
Re: Error loading mssql extention for php.
Posted by: noister (---.202.109.230.pldt.net)
Date: May 12, 2010 04:56AM

thanks neogen! it works...

Options: ReplyQuote


Sorry, only registered users may post in this forum.