Well, this one seems quite simple, and it is. All you have to do to download a file to your server is:
file_put_contents(\"Tmpfile.zip\", file_get_contents(\
set_time_limit(0); $file = file_get_contents('path of your file'); file_put_contents('file.ext', $file);