I can't connect to mssql in php5...

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

I can't connect to mssql in php5...

Post by icarpenter »

Hi I am sure someone has come accross this one before...

I can't connect to mssql in php5...however this same script works OK in PHP 4.4.2.

I have enabled the php_mssql.dll and this file exists in my windows\system32 director.y..

but I can't connect to the server and get the following error...

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: MyServer in C:\Inetpub\wwwroot\index.php on line 13
Couldn't connect to server.


Any help will be greatly appreciated...

Ian.
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

Post by icarpenter »

Gotit

I had to replace ntwdblib.dll that lives in C:\PHP...

you can find correct ntwdblib.dll here: http://webzila.com/dll/1/ntwdblib.zip
Post Reply