Re: Hacking wwwstat..

David Welton (davidw@efn.org)
Wed, 17 Sep 1997 17:14:39 -0700 (PDT)


Ok, after creating a more or less functional wwwstat with visits, I
scrapped most of it, and reworked lots of things.  Basically, I wanted a
cleaner solution for data storage than its own output files, something
with a fairly high degree of granularity(1 day), and the ability to
produce variable output from one source.

The solutions that seemed most likely to be feasible were:
1.  Use DBM files
2.  Use tab or comma delimited text files.
3.  Use some sort of sql database, like msql or mysql.

Immediately, I more or less discarded 3, as I am not aware of any free
(BSD or GPL style licenses) sql databases.

I decided to go with the DBM files because of how easy they tie into perl
hashes, and the fact that they are fairly fast.

So, currently, my program has the following features that differentiate it
from wwwstat:

1.  database storage
2.  visits (also per archive section... lots of commercial products don't
even do this:-)
3.  A progress meter ( a dot every 1000 lines)
4.  A signal handler, so if you ctrl-c it in the middle of processing, it
will write and quit.

I am calling the program 'wstat', as it really is pretty far removed in
some senses, from the original wwwstat.  I will accept suggestions, and
try and abide by any desires Roy has pertaining to its name and credits.
Of course, I am releasing it under the terms of the Artistic License.

I have created a small page with a download link, but I would appreciate
it if it were not widely distributed at this point.

So, without further ado, it is at http://pdx.cks.com/~davidw

I would appreciate it if questions and comments were directed to cks.com.

Ciao,

David Welton   
davidw@efn.org  davidw@freenet.hut.fi  http://www.efn.org/~davidw
Se quest'email e` in Italiano, mi dispiace per gli errori:-) FORZA PANTANI!
			 --Debian GNU/Linux--