[Gllug] webalizer and dynamic pages (C question)

gllug at uncertainty.org.uk gllug at uncertainty.org.uk
Fri Nov 2 16:33:41 UTC 2001


On Fri, Nov 02, 2001 at 03:22:04PM +0000, tet at accucard.com wrote:
> 
> >I actually want
> >
> >/test.php?page=foo&somevar=1
> >and
> >/test.php?page=foo&somevar=2
> >
> >to be treated as the same page ! ie I am only interested in some
> >(about 3) query string parameters.
> >
> >I speak perl php javascript and some java - but not C !
> > does anyone know what the *cp1 or '\0' is about ?
> 
> *cp1 deferences a pointer, but if you don't speak C, that probably
> doesn't mean much to you. The '\0' is a NUL character, which C uses
> as a convention to terminate strings.
> 
> I haven't tried it, but sticking a ? in the list of special case
> characters in the isurlchar() function should do what you want.
>

Thanks - that does do most of what I want - and it may be enough

though I'd ideally like

test.php?somevar=1&page=foo
and
test.php?page=foo&somevar=1

to be the same page ...

I think that all our sites have the page identifier as the first
variable in the query string ..,

open source is winning though :)

I tried this with webtrends - ended up writing a perl script to
mangle the logs, then had to process them and unmangle the results
which kind of worked - except that the box we have running windows
died so we can't run webtrends anymore (shame)

now I have to decide whether to learn enough C to parse the query string
the way I want to ...

-- 

Sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 274 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20011102/10f1ef2a/attachment.pgp>


More information about the GLLUG mailing list