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(\
best solution
install aria2c in system &
echo exec("aria2c \"$url\"")