Join 3,513 readers in helping fund MetaFilter (Hide)


You want to know what's hard? A web counter. Do you know how to do it?
June 21, 2014 6:23 PM   Subscribe

I have OS X Server 10.9, and I'll be using YUI's Pure to create a lovely responsive page/website but I need a counter of the downloaded files on the page. I also want to show the states of page access.
posted by usermac to Technology (4 answers total) 1 user marked this as a favorite
 
You want a counter that shows how many times a file has been downloaded from your website? What's a state of page access?
posted by michaelh at 7:00 PM on June 21


This link should show you a pic drawing of what I want. Drawing
posted by usermac at 7:40 PM on June 21


I assume you're comfortable running the PHP and MySQL that come with OSX Server.

Here's an example of how to make a hits counter: http://php.about.com/od/finishedphp1/qt/hit_counter.htm

Here's an example of how to make a download counter. http://tutorialzine.com/2010/02/php-mysql-download-counter/

That last example reads from a directory and outputs all your files, but you could just list your files manually and still use the file downloading PHP/SQL/htaccess.
posted by michaelh at 8:31 PM on June 21


I mean, yeah, you could code up something of your own, but isn't this kind of thing the whole point of analytics tools that parse your server log? For example, webalizer can show you this. It probably wouldn't take much to prettify it.
posted by juv3nal at 9:04 PM on June 21 [2 favorites]


« Older I recently got my friend hooke...   |  I work an extremely stressful ... Newer »

You are not logged in, either login or create an account to post comments