Re: Hacking wwwstat..
Mike Whitaker (mike@cricket.org)
Thu, 18 Sep 97 08:22:37 +0100
On 18/9/97 1:14 am, David Welton said:
>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.
PostgreSQL. - see www.postgresql.com
>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.
I'll take a look in my Copious Free Time (tm).
--
+44 1733 766619 (work/fax) +44 1733 894928 (home) +44 976 271866 (mobile)
--
Vorsprung durch Postgres, as they say in Madras.
Someday, all WWW servers will be designed this way.