I need help with putting a link tracker/counter on my website.
I have a page where people can download a certain type of files, and want to keep track on how many times each file has been downloaded. (like the number of times each topic has been seen on this forum.)
I intend to keep a .txt file for each link, containing the number of times it has been downloaded. Every time a person clicks on a link (e.g. mylink1.whatever) the script must open the associated text file (e.g. mylink1.txt) read it contents, which is only a number, and increment that number by 1. Also, the links are to be put on a table.
Until now i'm only able to open the associated .txt file and display the number in it (users must know if a certain file is a good choice). So, you can imagine how newbie i am...
Can anyone help me with this subject? Also, it it possible to use just one .txt (or .dat, whatever) file for all links??
Thanks!