$file = 'http://your-domain.com/files.zip'; $dest = 'files.zip'; $data = file_get_contents($file); $handle = fopen($dest,"w"); fwrite($handle, $data); fclose($handle); echo 'Copied Successfully.';