|
From: Sam S. <sa...@us...> - 2002-03-06 16:01:57
|
On Wed, 6 Mar 2002, Jonathan Stowe wrote: > On Wed, 6 Mar 2002, Tim Lee wrote: > > Is it possible to set the parameters for the counter to reference a single > > counter for an entire site rather than individual pages? > > > > I would like to have a single text counter that records hits to all pages of a > > site rather than individual pages. > > > > Right now the script when executed on any given page creates a new data script > > for that page and records the hit. Can the script be directed to reference a > > single count script in the cgi-bin/data directory? > > > > This is certainly possible, I have Cc'd the developers list to determine > whether anyone thinks this is a silly idea before I do anything about it > :) > > It almost certainly would involve having a $use_single_counter > configuration and a $counter_file - none of this coming into play unless > $emulate_matts_code is false. It would also be a nice feature to be able to use the same script for multiple hosts by including the HTTP_HOST value somewhere in the encoding. That way you can have www.foo.wibble.com/index.shtml www.bar.wibble.com/index.shtml both call the same script and not both incrememnt the same counter. Although I can see the single file format becoming a bottleneck on busy servers (who probably should be doing something better anyway..) Sam -- Mistakes: It Could be that the Purpose of Your Life is Only to Serve as a Warning to Others |