|
Posted by Good Man on 09/10/07 17:41
Michael Fesser <netizen@gmx.de> wrote in
news:e8vae355c9ihgr6tj87eg6qe36hlij7bb8@4ax.com:
> .oO(Good Man)
>
>>try streaming a 12MB file, regardless of your memory settings, to
>>understand my point. your download will end early and you will not
>>get the complete file.
>
> I did a test with a 179MB(!) file on my local server - no problems
> with a plain readfile(). Memory limit is set to 32MB, PHP 5.2.3.
> Script execution and file delivery took about 70s, memory usage was
> just 1.7MB.
>
>>the function is posted on the manual page for a reason, i personally
>>have found it vital, use at your discretion.
>
> Maybe a bug in an older version? The UCN is from 2005.
Interesting, thanks... as I said, it's not like I used that function right
away, I had to resort to it because my files were getting cut off.
I'll skip it on new coding projects and use plain ol' readfile()
:)
[Back to original message]
|