|
From: Jonathan S. <gel...@ge...> - 2002-03-06 17:05:02
|
On Wed, 6 Mar 2002, Sam Smith wrote: > 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..) > Yep this looks like a good feature too though I'll have to have a play on the train :) /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent | |