I have to download big file (1xx MB) using PHP.
How can i download this without wasting memory (RAM) for temporary file ?
When i use
$someth
you can shell out to a wget using exec() this will result in the lowest memory usage.
wget
exec()
You can also try using fopen() and fread() and fwrite(). That way you onlly download x bytes into memory at a time.
fopen()
fread()
fwrite()