php mssql connecting problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
Jeremy108
Forum Newbie
Posts: 5
Joined: Tue Jul 15, 2003 5:12 pm

php mssql connecting problems

Post by Jeremy108 »

Windows 2003 server - IIS - 6 and SQL server 2000, php 4.3.5

I have placed the php_mssql.dll in the extensions folder. I have placed the ntwdblib.dll in the system 32 folder (both the latest version and the one from the sql 2000 install cd - tried em both) and I have uncommented the line: extension=php_mssql.dll. After all this, I still get this message:

Warning: mssql_connect(): Unable to connect to server: 152.135.xxx.xxx,1433

I've tried it using localhost and I get this message:
Warning: mssql_connect(): Unable to connect to server: localhost,1433

The ODBC functions connect perfectly, but not the mssql_connect functions.

Any ideas?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

twigletmac, at [url=http://forums.devnetwork.net/viewtopic.php?p=40071#40071]Before Post Read: General Posting Guidelines[/url], gently wrote:(...)
10. Don't cross-post, once you've chosen the most relevant forum there is no need to post the same question in any of the others.
(...)
Please read the Before Post Read: General Posting Guidelines.

Thanks,
Scorphus.
Locked