Page 1 of 1

Bug on moving files between servers

Posted: Tue Nov 29, 2016 9:55 pm
by enricodias4654
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.