I would like to transfer a file from one webserver to another webserver using a php script, both servers are my accounts. I tried to simply use ftp_put and put the first server file path as the local_file but it did not seem to work, I'd guess because it was looking for the file on my local computer, not the server running the script.
Currently, my script on server1 accepts a file upload from a form. The script alters the file, it is an image and the file is re-sized and re-named. Then it saves the file to server1 using "copy".
This works fine, but after this I want to copy the altered file from server1 to server2.
Is this possible to do from the same script?