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

Posted by Good Man on 09/10/07 16:36

howa <howachen@gmail.com> wrote in news:1189441552.210767.228350
@r29g2000hsg.googlegroups.com:

>>> "readfile" has a knack for ending the file streaming
> early on large files
>
> not really understand your point....
>
> i think beside memory limiation, a single call to readfile should be
> more efficient.

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.

the function is posted on the manual page for a reason, i personally have
found it vital, use at your discretion.

 

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

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