This page has been accessed
times.
The counter program that I use myself was written by Frans van Hoesel and modified by a number of people including Dan Rich, Michael Nelson, Mike Morse, Karen Nakamura and finally myself. It includes the following features:
If you are an organization or individual at Stanford that already has an account on CMGM (aka cmgm.stanford.edu), you can easily add an access count to your page because count2.xbm is already installed.
mkdir ~/logs
chmod a+x ~/. chmod a+x ~/logs chmod a+w ~/logs
You could also make the "logs" directory owned by "nobody". This is a bit safer since this will keep you and other folks from saving lots of stuff in your subdirectory, or editing your page counts. Ask the System Manager to do this for you.
<a href="http://cmgm.stanford.edu/wusage7.0/usage"> <IMG SRC="http://cmgm.stanford.edu/cgi-bin/count2.xbm/MYDIRECTORY/MYACCOUNT/ logs/MYPAGENAME" ALT="[Count not available in text mode]"> </a>
The line that begins <A HREF=....> is only if you want to link, to the page that shows the overall CMGM statistics for the week ... you can put anything there, or just use the IMG SRC without any other fussy stuff. It does give the counter a nice blue border though... The following files will be automatically created: (from the example above)
~/logs/mypage.log
~/logs/mypage.count
When the home page is displayed, Web clients will retrieve the in-line bitmap. This will invoke this script, which responds with a bitmap it builds on the fly, that looks like an automobile odometer. If you include the A HREF, the odometer will be surrounded by a border (and look better), and users can click the odometer to get some other information.