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

Reply via email to