Page 1 of 1

upload the files across the server

Posted: Fri Jan 02, 2009 8:15 am
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.

Re: upload the files across the server

Posted: Sat Jan 03, 2009 6:48 pm
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.

Re: upload the files across the server

Posted: Sun Jan 04, 2009 1:24 am
by watson516
How about just FTPing it over?

Re: upload the files across the server

Posted: Sun Jan 04, 2009 5:25 pm
by it2051229
yeah that's my point FTP haha.. thank god you reminded me of that acronym.