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, 2014


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


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, 2014


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, 2014 [2 favorites]


« Older Looking for some hilariously awful movies to watch...   |   Looking for inexpensive long weekend vacation... Newer »
This thread is closed to new comments.