Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
03-31-2010, 02:45 AM #1
- Join Date
- Feb 2010
- Thanked 0 Times in 0 Posts
Need help adding to database on multiple servers
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:
$handle = fopen("http://www.mysite.com/register.php?user=$username&pass=$password", "r");