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

Posted by Michael Fesser on 09/10/07 17:27

..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.

Micha

 

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

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