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.
Well instead of a database you will have to keep a file with count
in the php file that downloads the pdf:
$downCount = intval( file_get_contents("/some/path/downloadCount") ); $downCount++; file_put_contents("/some/path/downloadCount",$downCount);