Which would be the best way to download a file from another domain in PHP? i.e. A zip file.
normally, the fopen functions work for remote files too, so you could do the following to circumvent the memory limit (but it's slower than file_get_contents)
copied from here: http://www.php.net/fread