count number of downloads
| From: | (Dietmar Wenglorz) | Date: | Wed, 10 Jul 2002 12:17:00 +0000 |
| Subject: | count number of downloads | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106823@lists.php.net to get a copy of this message | ||
I have a php-script with which one can download a file with a specific format
like this:
header("Content-type: application/specific");
header("Content-Disposition: attachment; filename=$name.sqrfld");
echo ("output funny stuff...");
and i will count the number of downloads in a database. When i write the code
for counting after the "echo ..." statement it will be executed regardless if
the user aborted the download or not. How can i guarantee that i update the
database when the download is complete?