[PHP] Counting download problem

2004-07-20 Thread Rausch Alexandru
Hi,
I have a script that creates automatically a zip arhive.
The script works fine, but I want to count downloads, and I made that
to, but if the user click cancel in the download panel the download it
is also counting. How can I prevent this from happening?
 
Thanks,
 
Rausch Alexandru


Re: [PHP] Counting download problem

2004-07-20 Thread Jason Wong
On Tuesday 20 July 2004 16:44, Rausch Alexandru wrote:

 I have a script that creates automatically a zip arhive.
 The script works fine, but I want to count downloads, and I made that
 to, but if the user click cancel in the download panel the download it
 is also counting. How can I prevent this from happening?

Have a look at connection_aborted().

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Regardless of the legal speed limit, your Buick must be operated at
speeds faster than 85 MPH (140kph).
-- 1987 Buick Grand National owners manual.
*/

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