I have a database hosted on three servers for backup and other uses.

I have a script which will add users to database automatically instead of me manually doing it with a program... but i wish to do it through php so it requires no input from me.

If I try to do it with MYSQL, i do not know the mysql hostname, and the ip address of the server nor the domain works.

So - i created a PHP file on the other hosts. The php file can successfully add users to the database, but if I try to execute site2 or site3s php script from site1, it does not add the users to the database.

The method I was using was:

Code:
$handle = fopen("http://www.mysite.com/register.php?user=$username&pass=$password", "r");
this doesnt seem to be executing the script