PHP Warning: MS SQL error: Unable to connect: SQL Server is
unavailable or does not exist. (severity 9) in pathtofile\test.php4 on
line 5
PHP Warning: MS SQL: Unable to connect to server: 192.168.168.168 in
pathtofile\test.php4 on line 5
Why would I get these errors when I access a php file with Netscape 7
and not when I access the same file with IE 6. I can switch back and
forth as fast as I can and every request from IE works and every request
from Netscape fails. So it isn't a timing issue where the SQL Server is
going away for a second.
If I continue the file and try to run queries to test the connection,
the queries verify the errors. IE They don't run when requested by
Netscape 7 and they do when requested by IE 6
This is my setup
IIS 5.0
-Virtual Site
-Directory security: basic
-Anonymous Access: Disallowed
-PHP 4.2.3
Database
-MS SQL 2000
Client Netscape 7.0
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823
Netscape/7.0
<?
$username = 'dbusername';
$password = 'dbpassword';
$connection = mssql_connect('192.168.168.168',$username,$password);
?>
Thank you
Charles Killmer
Windows 2000 Server PHP 4.2.3 IIS 5.0