Reply to Re: Download completion detection

Your name:

Reply:


Posted by Jasen Betts on 02/19/06 06:09

On 2006-02-18, Sjoerd <sjoerder@gmail.com> wrote:
>
> Mickey wrote:
>> Is there a way to find out when a user has completed a download?
>
> You can let a PHP script supply the download:
>
><?php
> readfile('download.exe');
> database_query('UPDATE downloadcount SET number=number-1');
> ?>
>
> Beware of the maximum execution time: if the download takes more than
> 30 seconds, it will abort. See set_time_limit().

Yeah, that's what I meant, but also increase the downloadcount before the
readfile.

This also means that users will not be able to resume aborted downloads.
but will have to restart them.


--

Bye.
Jasen

[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

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