[Gllug] webalizer and dynamic pages (C question)

Richard Cottrill richard_c at tpg.com.au
Fri Nov 2 16:47:56 UTC 2001


Alternatively you could learn enough C to embed PERL (not as hard as it
sounds). You're probably right though: learning C is one of those 'good' but
uncomfortable things we should all do; like exercise.

Richard

> -----Original Message-----
> From: gllug-admin at linux.co.uk [mailto:gllug-admin at linux.co.uk]On Behalf
> Of gllug at uncertainty.org.uk
> Sent: Friday, November 02, 2001 4:34 PM
> To: gllug at linux.co.uk
> Subject: Re: [Gllug] webalizer and dynamic pages (C question)
>
>
> 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
>
>


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list