Reply to Re: The best method to send a large file to client?

Your name:

Reply:


Posted by howachen on 10/05/06 08:06

howachen@gmail.com 寫道:

> I have many text file with 1 to 2MB in size
>
> currently, i use the method:
>
> echo file_get_contents( $file_path );
>
>
> are there any better method?
>
> thanks.

gzip take time, if many people access the page, my server will be
killed....

what i want to look for is if any method can send the file to apache
for display with getting back the content to the php first, i.e. i want
streaming, no matter the size of the file, even 1GB

echo file_get_contents( $file_path ); // no good, as content will be
passed back in the STACK during function call

// i want sth like...streaming
print_file_to_client( $file_path );

[Back to original 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

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