Download count?

how do i make a download counter?

ex: i have a link to download an mp3 file, and i want to show how many times that link was clicked.

ive seen this in forums’ attachments - how do i apply it to a web site?

  1. Scan your server logs for static downloads
  2. Use a CGI script that reads the mp3 file
  3. Use a CGI script that redirects to the mp3 file

Forum attachments usually use method #2 because it allows one to prevent non-registered users from downloading the file.

:cool: Perl / MySQL / HTML+CSS