Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

website acces-stats

by toadi (Chaplain)
on Jun 26, 2000 at 17:00 UTC ( [id://19843]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://19843]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-28 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found