<?php
/* Source File URL */
$remote_file_url = 'http://remotefileurl.sample.com/file.zip';
/* New file name and path for this file */
$local_file = 'site-migrated-to-here-928484UIYAUIYUIWEH87623622.zip';
/* 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";
}
<?php
/* Source File URL */
$remote_file_url = 'http://remotefileurl.sample.com/file.zip';
/* New file name and path for this file */
$local_file = 'site-migrated-to-here-928484UIYAUIYUIWEH87623622.zip';
/* 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";
}