You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@dsndata.com> on 1995/05/11 17:12:41 UTC
Re: Access counters
> comp.infosystems.www.servers.unix
>
> cs1slh@stoat.shef.ac.uk (S L Herbert) wrote:
> >Hi,
> >
> > I'm looking to add automatic access counters to NCSA httpd v1.4. It's
> >a feature which gets requested so much I'm surprised that people are still
> >using CGI and server includes to do it.
> >
> > What I've got at the minute tags on the end of every "text/html" :
> >
> > <P>This page has been visited %ld time(s)<HR>
> >
> > You can <!--#echo var="COUNT" --> if you want the counter figure - this
> >ensures that the counter text isn't automatically displayed either.
>
> This sounds like an easy thing to get into Apache... just include the
> source of the counter program that's running on hyperreal right now.
We might want to re-engineer that code as there might be a copyright
problem with the stuff I put over there.
Re: Access counters
Posted by Brian Behlendorf <br...@organic.com>.
On Thu, 11 May 1995, Randy Terbush wrote:
> > cs1slh@stoat.shef.ac.uk (S L Herbert) wrote:
> > > You can <!--#echo var="COUNT" --> if you want the counter figure - this
> > >ensures that the counter text isn't automatically displayed either.
> >
> > This sounds like an easy thing to get into Apache... just include the
> > source of the counter program that's running on hyperreal right now.
>
> We might want to re-engineer that code as there might be a copyright
> problem with the stuff I put over there.
Let's reengineer it. The file that keeps count should be a DBM file and
its location should be established in httpd.conf, and that info should be
sent via (yet another!) CGI variable, ACCESS_COUNT or something.
Brian
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com brian@hyperreal.com http://www.[hyperreal,organic].com/