I am using sql server 2005 and apache. And yes they r on both the machines. -----Original Message----- From: John Meyer [mailto:john.l.meyer@xxxxxxxxx] Sent: Thursday, August 10, 2006 12:00 PM To: php-windows@xxxxxxxxxxxxx Subject: RE: Localhost does not work Is the MySQL server located on the same machine as the Apache machine? -----Original Message----- From: Harpreet [mailto:harpreet@xxxxxxxxxxxxxxx] Sent: Thursday, August 10, 2006 9:36 AM To: php-windows@xxxxxxxxxxxxx Subject: Localhost does not work $con = mssql_connect('localhost','username','password') Does not work but $con = mssql_connect($_GET["HOSTNAME"],'username','password') works fine. Please help -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php