monitoring downloads

liunx

Guest
Hey all<br /><br />Is there a way I could monitor downloads from my site?<br /><br />I'd just like to know how many times people have downloaded my desktop patterns or screensavers.<br /><br />Thanks<br /><br />E<!--content-->
hmmmm.. i don't really know about this... the style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><!--content-->
That's what I was thinking and thought someone target="_blank">http://www.phpjunkyard.com/php-click-counter.php<br /><br />Maybe this will be of some use?<!--content-->
seems perfect Dizi <img src="http://www.webdesignerforum.co.uk/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
If you got server side scripting, PHP, ASP, e.t.c. it's not very complicated to write a small script to track the number of times a file is accessed.<br /><br />You got server side script target="_blank">Google Analytics.<!--content-->
doesn't that just give you page stats rather than who is downloading><img src='http://www.webdesignerforum.co.uk/style_images/1/post_snapback.gif' alt='*' border='0' /></div><div class='quotemain'><!--quotec-->what you can do is to create a "proxy" for the downloads, so instead of the url looking like this:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->wallpaper.jpg<!--c2--></div><!--ec2--><br />it looks like this<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->download?file=wallpaper.jpg<!--c2--></div><!--ec2--><br /><br />I have attached a file called "dl.php"<br /><br />you will need to put this into your downloads directory, and create a folder inside it called "count" with full permissions.<br /><br />the "counts" will be in the /count folder, with each file there being pretty obvious waht it relates to (downloading a.jpg will count in a.jpg.count).<br /><br />I probably need to add a bit of extra security into it (just so you know), but this was more an example<!--QuoteEnd--></div><!--QuoteEEnd--><br />Doing a real_path() on the file requested and matching that the directory part of the results with $files_location should be enough I think.<!--content-->
not tried anything yet...been too busy!<!--content-->
 
Top