$kaynak = file_get_contents("http://www.site.com/dosya.zip");
$f = fopen("dosya.zip", "wr");
fwrite($f, $kaynak);
fclose($f);