/* Source File URL */ $remote_file_url = 'http://artan-displaystand.co/backup-Sep-22-2020-1.tar.gz'; /* New file name and path for this file */ $local_file = 'backup-Sep-22-2020-1.tar.gz'; /* Copy the file from source url to server */ $copy = copy( $remote_file_url, $local_file ); /* Add notice for success/failure */ if( !$copy ) { echo "Doh! failed to copy $file...\n"; } else{ echo "WOOT! success to copy $file...\n"; }