So here's the problem: I can connect to a mySQL database on localhost just
fine with a PHP test script I've written, but I cannot connect to a remote
server, even though I can connect to the remote server just fine with
mySQL Control Center. Anybody have any suggestions? Here's a snippet of my
code, if it helps:

@ $db = mysql_pconnect($myhost, $myuser, $mypass); 
if (!$db) 
        echo "Error: could not connect to DB."; exit;
echo "Connection established!";

And I have verified that the variables $myhost, $myuser, and $mypass
contain the correct connection data.

Thanks a million!
Bryan Green

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to