File Upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

File Upload

Post by S_henry »

In my system, I must use 3 backup server and 1 main server. In each server, I have to put 1 database. Let say in server A got database dbA, in server B got database dbB an so on. I run my system in the main server. While the system is running, it will generate files. Everyday (maybe at 12 am) I want to upload those generated files into all 3 backup servers. So anybody got any idea how to do this? Pls ask me if my explanation is not clear..
Corvin Gröning
Forum Newbie
Posts: 16
Joined: Tue May 03, 2005 1:02 pm

Post by Corvin Gröning »

You could connect to the databases on the other servers and put the data into them directly. Write in mysql_connect() the IP oder Domain of the server instead of "localhost".
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

OK. I'll try it first and see how it works. Thanx..
Post Reply