You are here: Re: [PHP] Files passing through « PHP « IT news, forums, messages
Re: [PHP] Files passing through

Posted by Philip Hallstrom on 08/23/05 00:49

>> What is the fastest way to do this? I know
>> echo(file_get_contents('myfile')); is not a good idea ;)
>
> Why not?

My guess would be because file_get_contents returns the contents as a
string. So if 'myfile' is 100mb, you're going to have to allocate 100mb
of memory to store that string while echo() spits it back out.

But I'm just guessing as I don't know for sure...

-philip

 

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

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