[PHP] count number of downloads

2002-07-10 Thread Dietmar Wenglorz

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?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] count number of downloads

2002-07-10 Thread Dietmar Wenglorz

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?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php