I've written some php code to connect to a mysql database, which is as follows:
function ConnectToDatabase(){
global $hostname, $databaseName, $username, $password;
//create a connection to MySQL server
$connection = mysql_connect($hostname,$username,$password) or
die('Failed to connect to MySQL server. ' . mysql_error() .'<br />');
//select the database
mysql_select_db($databaseName, $connection) or
die('Failed to connect to the database. ' . mysql_error());
return $connection;
}
|
This code works on a php webserver, but will not work when being run locally though the debugger in NuSphere.
It will time out and give an error message about not being able to connect 10060.
The firewall is completly open for outgoing connections.
Anyone have any ideas about how to setup the debugger to be able to connect to external databases?