Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-31-2010, 01:45 AM   PM User | #1
xvisceral
New to the CF scene

 
Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
xvisceral is an unknown quantity at this point
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:

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

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:22 PM.


Advertisement
Log in to turn off these ads.