upload the files across the server

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
phani_k
Forum Newbie
Posts: 1
Joined: Fri Jan 02, 2009 8:10 am

upload the files across the server

Post by phani_k »

Hi,

I have 2 servers, I had a script in 1st server. That script functionality is uploading the files to the server. Now my requirement is by using the same script i want to upload the files to the 2nd server. I dont want to install the same script in 2nd server. Can we do this? if yes, please tell me the procedure.

If you need any clarification please ping me at
gtalk ---- phani@vanquishtechnologies.com
yahoo --- phani_kosaraju@yahoo.co.uk

Thanks in advance.

Phani Krishna K.
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: upload the files across the server

Post by it2051229 »

so there will be three computers? one client and two servers. So client now uploads a file to server 1 and at the same time is uploaded to server 2 also. But since you dont want a second script for server 2......... i'm not sure but i think this can be done using sockets.Server 2 will listen to a particular port and will wait for server 1 to connect to it. Client now uploads the file to server 1, and if successful server 1 will connect to server 2 using socket, and when connection is successful, stream the uploaded file to server 2.
watson516
Forum Contributor
Posts: 198
Joined: Mon Mar 20, 2006 9:19 pm
Location: Hamilton, Ontario

Re: upload the files across the server

Post by watson516 »

How about just FTPing it over?
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: upload the files across the server

Post by it2051229 »

yeah that's my point FTP haha.. thank god you reminded me of that acronym.
Post Reply