I have looked and looked and google has so far failed to help. I tried enabling the modules, but I just can't get MSSQL to run with WAMP. It keeps telling me that it the function mssql_connect() is undefined. Does anyone know how to set up MSSQL with WAMP? The MSSQL server is on a different machine.

Thanks.

link|improve this question
microsoft.com/download/en/… – Marc B Aug 3 '11 at 19:02
I'm not sure, but I think PHP must be compiled -with-mssql / some .dll's must be downloaded. – JanL Aug 3 '11 at 19:07
feedback

1 Answer

Try adding this to your php.ini file:

[PHP_MSSQL]
extension=php_mssql.dll

This library contains the mssql functions such as mssql_connect(). Also, make sure php_mssql.dll is in the extensions folder.

link|improve this answer
The problem is I'm using php5.3 and this has been removed, so what can I use instead? – Peter Aug 3 '11 at 19:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.