Click to See Complete Forum and Search --> : Counter Script


simplex
11-20-2002, 04:35 PM
Does anyone know of a comparable counter to NPH-Count without using SSI?

I have a client whose present hosting company made available that counter program and the client has it called on over 5000 html pages. This client desperately needs to move to a different hosting company but none will install NPH-Count so I am looking for a viable script that can be installed and operate out of the cgi-bin directory using the raw access logs.

The functionality we need is the ability for the script to count total hits to the website and, at the same time, individual pages without creating seperate counter files on the server.

For example accessing a page called "page2.html" you would see this counter information:
"You are the 101 visitor to this website and visitor 51 to this page"

with the following internal file calls:
/cgi-bin/nph-count?width=7&link=http://website_domain
/cgi-bin/nph-count?width=6&link=http://website_domain/page2.html

Any suggestions or help would be greatly appreciated since I do not do scripting and changing coding on 5000 pages is already a major task so I'd like to keep things as simple as possible.

Thank,
Simplex

Scriptage
11-22-2002, 09:10 PM
Hey,
I've written a program that does exactly what you want as for as the counting goes BUT does need SSI to run, ie <!--#exec cgi="nph-count.pl?link=page.html" -->.

I'm sure I can find a way around this; perhaps by making the CGI program pass the data to an XML data island and then writing the information to the page that way.

If you want to talk more in depth, e-mail me at batesy1986@hotmail.com.