|
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
Navigation:
[Reply to this message]
|