toadi has asked for the wisdom of the Perl Monks concerning the following question:

Got a big problem.

Got no SSI, php,etc....
Got plain perl-cgi(no mods) and javascript. Now I have to make a website counter(which page is accessed how many times).

Tried to parse the webserver-logs, but they are not logging which webpage is accessed!!!

My creative ideas are dryed out, can smb help me out ???

Replies are listed 'Best First'.
Re: website acces-stats
by httptech (Chaplain) on Jun 26, 2000 at 17:16 UTC
    Use the World's Smallest GIF script to generate a one-pixel transparent image each time it is called, then add the location of the script to each page you want to track as an IMG SRC. Use the $ENV{'HTTP_REFERER'} variable to track which page the request came from and log it to your own logfile.
RE: website acces-stats
by Kevman (Pilgrim) on Jun 26, 2000 at 17:07 UTC
    I've seen this sort of thing before here. If you look at the following URL
    Weblogging
    it covers keeping track of people who have logged to a web page. Alternatively, I'm sure you can find this by
    searching in the "Search" area.
Re: website acces-stats
by merlyn (Sage) on Jun 27, 2000 at 01:48 UTC
Re: website acces-stats
by toadi (Chaplain) on Jun 27, 2000 at 20:04 UTC
    Silly question merlyn, where are those rants about it...?

    (found a perl-lover in it and he installed cgi.pm on the solaris, and now I'm getting somewhere)

    --
    My opinions may have changed,
    but not the fact that I am right