[PHP-WIN] Connecting to a remote database server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.");

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux