tags:

views:

35

answers:

1

I generated a text file on server1, and then I need to FTP it to server3.

Due to firewall, I could not FTP it directly but have to go through server2.

I want server1 to call PHP script on server2 and then pass the text file to server3. Any idea how can I start with the PHP script?

+2  A: 

Perhaps curl is going to help. Use curl to call the script on server 2. Then, form server2 you can ftp to server3. curl supports post-ing a lot data, so you should be fine. Not sure if it's the best solution, but it might get the job done.

nc3b