You are here: Re: file_get_contents vs readfile « PHP Programming Language « IT news, forums, messages
Re: file_get_contents vs readfile

Posted by Steve on 09/10/07 18:39

"Good Man" <heyho@letsgo.com> wrote in message
news:Xns99A78B5C9DDE4sonicyouth@216.196.97.131...
> 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()

or plain ol' file_get_contents()

;^)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация