2

I am developing in php and trying to implement a download counter to count the times that users downloaded my application.. I also read the following topics:

Best way to implement a download counter?

Best way to count file downloads on a website

and found nothing useful enough..

What I would like to ask is: what kind of download counter the big companies implement? is it when the user cancels the download doesn't count?

Is it even possible - to count file downloads, and remove 1 from the count if the user canceled the download?

I already have a script that works great - but only when the file is 1MB or upper, when its less than a 1MB and a user cancels the download - the download still counts..

Thanks in advanced, Din.

Community
  • 1
  • 1
dinbrca
  • 1,101
  • 1
  • 14
  • 30
  • I'm sure everyone implements their own solution. This isn't rocket surgery. Show us your code that works great but doesn't, and perhaps we can suggest an improvement to it so that it works all of the time. – Brad Jan 09 '11 at 02:33

1 Answers1

3

Nobody cares about canceled downloads (and in fact, bigger number looks cooler for management & users).

It is just counted via dummy redirect/logs analyzing.

No rocket science.

BarsMonster
  • 6,483
  • 2
  • 34
  • 47