PHP Code:
<?php
$file = $_GET['d'];
$x = basename($file, '');
$newfile = $x;
echo 'File Source: '.$file.'<br>File Name: '.$x.'<br>Save As : '.$newfile;
if (!copy($file, $newfile)) {
echo "<br>failed to copy $file...\n";
}
else { echo '<br>Copy your file successfull';}
?>
For working this code, make forlder CHMOD as 777 or Writable or it will be not work.
call url to download as: [b]filename.php?d=http://www.test.com/file.zip[b]
this code will only work for direct link.
filename.php is a file who contain this code.
This code i find from PHP.net, when i was going to lean here & i edit some from main code.