Reply to Re: [PHP] handling large files w/readfile

Your name:

Reply:


Posted by Marek Kilimajer on 02/23/05 16:45

A "little" late but:

Robin Getz wrote:
>
> If this runs for awhile things go very bad. This seems to be related to
> a specific download manager called NetAnts that seems to be popular in
> China.
> http://www.netants.com/
>
> Which attempts to open the same url for downloading 10-15 times at the
> same instant.
>

Download managers use Content-Range header [1] to request parts of the
downloaded file in multiple instances. The client above is likely broken
and does not recognize that your script does not support content-range
requests, and keeps requesting and disconnecting instead of giving up.

>
> Someone suggested apache_child_terminate - but this function doesn't
> seem to be available to me.

If the function is not available you can still use connection_aborted().


[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16

[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

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