آدرس فایل را به جای http://www.SourceWebsiteURL.com/path/file1.zip وارد کنید.

<?php
$file = 'http://www.SourceWebsiteURL.com/path/file1.zip';
$newfile = 'file1.zip';
if (!copy($file, $newfile)) {
echo "Failed to download $file...\n";
}else{
echo "Successfully downloaded!";
}
?>

فایل دانلود شده با نام file1.zip ذخیره خواهد شد.

پایان

منبع