Chris, Same as with localhost, replace localhost with DNS name or IP of the remote DB server. Make sure port 3306 is open on the DB server and that the box you are connecting from is an allowed host in the users table of the mysql database on the remote database.
Neal Carmine Nine Systems Corporation -----Original Message----- From: Chris Payne [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 4:09 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Connecting to a remote server? Hi there everyone, I have written a program in PHP with MySQL as the DB backend, It works great but I need to be able to connect to a remote MySQL DB server for an Updates system I've written, how do I connect to a remote MySQL server with PHP? I've only ever done it with localhost. Thanks Chris --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.802 / Virus Database: 545 - Release Date: 11/26/2004 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php