Posted by Sjoerd on 02/18/06 20:36
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().
[Back to original message]
|