I would like to know how I upload one image onto 2 different servers. Uploading one image is fine becuase the upload script is already on the server so specifying the path is no problem, however how do I go about uploading the same image to a remote server.
//THIS ONE WORKS FINE BECUASE PATH IS CORRECT AND UPLOADS TO FOLDER//
@copy($img1, "/home/server_one/public_html/Photos/$img1_name") or $log .= "Couldn't copy image 1 to server";
if (file_exists("/home/server_one/public_html/Photos/$img1_name")) {
//THIS IMAGE NEEDS TO BE UPLOADED TO A REMOTE SERVER//
@copy($img1, "/home/remote_server/public_html/Photos/$img1_name") or $log .= "Couldn't copy image 1 to remote server";
if (file_exists("/home/remote_server/public_html/Photos/$img1_name")) {
I hope this makes some sort of sense.