Connecting to a remote database server

From: Date: Tue, 26 Aug 2003 22:42:37 +0000
Subject: Connecting to a remote database server
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-21256@lists.php.net to get a copy of this message
I am using the following to connect to the database through my php page. Now I want to host the website on another server and conenct to the database on another machine. How do i change my code. Do i just change the path to the computer name $_SESSION["hostname"] = "computer name"; $_SESSION["dbname"] = "database name"; $_SESSION["con"]=mssql_connect($_SESSION["hostname"],$_SESSION["user"],$_SES SION["password"]) or die ("Error on connection string.");

« previous php.windows (#21256) next »