I am a beginer in programming. i have a pdf file for download in my website. I want to know the no. of downloads. I searched in google.
and i tried something like this.
You could use the atime (access time) of the file as a counter aswell.