Notice:

This is a script I wrote quite a while ago. It is not supported, but I left it here in case it might be useful to someone.

Please visit http://www.mattkruse.com/ for my updated web site and to find some of the things I've done more recently. Hopefully you will find something useful, or at least mildly interesting!

Graphical Access Stats



This script started as an experiment with using the HEIGHT and WIDTH tags in Netscape to create bar graphs from single-pixel-images. Well, it worked great and I decided to incorporate it into a stats script.

The script analyzes the access_log of NCSA httpd 1.4 and reports on accesses based on day of the week, hour of the day, days of the month, and also an on-going graph of accesses. It looks really cool in Netscape 1.1, and looks horrible in any other browser. But hey, the purpose isn't to make a great, portable HTML document. The purpose is to make good-looking, informative results.

The script is nowhere close to being perfect or "clean" code. In fact, it's pretty messy - but it works, and that's fine for me. You'll need to be using NCSA httpd 1.4 for this to work, and it may take a while to compile the results.

Sample Output

Take a look at the output if you are using Netscape 1.1. If you are using any other browser, it won't look like anything. and if you leave your images off, it will look really weird :)

Source Code

Here is the source code. This perl script is free. Note that this script requires 4 .gifs to display, which are included in the archives below.

TAR archive

Includes source and 4 gifs. (20k)

ZIP archive

Includes source and 4 gifs. (3k)