When moving files between 2 direct servers the transfer may timeout in 60 seconds. Use default_socket_timeout to increase the timeout for the functions fopen and file_put_contents.
If the server starts the download and the connection drops in the middle of the transfer the script will proceed as if the file was downloaded successfully and the original file will be silently deleted after 1 day. To fix this, check the file size and/or md5 on the receiving server.
If the server starts the download and the connection drops in the middle of the transfer the script will proceed as if the file was downloaded successfully and the original file will be silently deleted after 1 day. To fix this, check the file size and/or md5 on the receiving server.