Server issue

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

Server issue

Post by S_henry »

In my system, i want to use 3 server. 1 as a main server to install the system, and another 2 server (eg. Server A and Server B) is to store backup file and database. In my system (on main server), i want to make 1 function to get the count of files stored on each server(can get through database). For example, through main server, i can get how many files was stored on Server A and Server B. Anybody got any idea about how to do this pls?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

since they're not on the same server, you're going to have to use ftp or ssh or the like to get a count of the files on the "remote" servers' file systems...
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

Can anybody tell me a bit more details about this? Or maybe can give any link related that can help me? Sorry, actually i'm very weak in this part.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

How hard is is to do a websearch on "php ftp" or "php ssh"?

Anoter option is to install NFS or SMB. This way you can mount the drives as if they were part of your local filesystem. More info available via your favorite websearch engine.
Post Reply