Re: mysql_connect(...) = Not working. Where should I start?
Posted by:
Luth -
Date: April 06, 2006 12:15PM
(Sorry if I dont understand this 100%)
As far as my limitied knowledge provides, I havent made any "query" calls. The extent of the PHP script is this:
//--------------------------------------------------
// ... retrieve args
$command = array_shift($args);
$host = array_shift($args);
$user = array_shift($args);
$password = array_shift($args);
$link = mysql_connect($host, $user, $password);
Process();
mysql_close($link);
function Process() {
if($link == FALSE) {
echo("Failed to connect: " . mysql_error());
return 0;
}
}
//--------------------------------------------------
This script, as it runs, provides this output:
Failed to connect: Lost connection to MySQL server during query
So, where should I start? :) Is there a reason why a PHP script on my webserver isnt permitted to connect to a MySQL server on another box? (they're not on the same server) I'm so lost. :(
Subject
Written By
Posted
Re: mysql_connect(...) = Not working. Where should I start?
April 06, 2006 12:15PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.