I'm wanting to detect when a visitor downloads a file on my website, so I can do things like: immediately increment counters, etc.
My HTML might be something like this (but I can change it if required):
How can I make it so when a user clicks the link it starts up a Perl script, or whatever?
I know I could look at web stats on the site, but I think they are not updated promptly and I'm wondering if there is a more direct method, without having to monitor logs, etc.
Also, how can I get the IP Address of the person who clicks the link?