You are here: Re: Download file size pregress bar « PHP Programming Language « IT news, forums, messages
Re: Download file size pregress bar

Posted by Chung Leong on 11/16/05 01:00

As I've said a number of times, don't use a PHP script to serve
downloads of large files. The reasons are:

1) The web server can do it much more efficiently. Each instance of PHP
takes up quite a lot of memory. There's also quite a lot of double
copying as the data travels through different layers.

2) The web server knows how to handle partial retrieval--needed for
resuming interrupted downloads and quick navigation through large PDF
files.

3) Earlier versions of the Apache 2 SAPI module leaks memory, losing
every byte output by PHP. A rapid sequence of multi-megabyte downloads
will consume all available memory, leading to a server crash.

Getting back to your original question, you need to send the
Content-Length header.

 

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

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