Re: Net_URL don't use $_SERVER
| From: | Richard Heyes | Date: | Mon, 20 Jan 2003 14:36:47 +0000 |
| Subject: | Re: Net_URL don't use $_SERVER | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12617@lists.php.net to get a copy of this message | ||
> On Mon, 2003-01-20 at 09:42, Richard Heyes wrote:
> > > I was looking for Net_URL code to add UrlParser on it and I found a
way
> > > to integrate it, something like:
> > >
> > > $url = &new
> > > Net_URL('http://www.example.com/fruit/pear/color/green/',
> > > true,true);
> > >
> > > Where the last param is to tell to Net_URL to parse things and return
> > > fruit=pear and color=green.
> > >
> > > Also, the putGlobal. putPost and putAll things can be added too.
> >
> > A derived class would be more appropriate IMO, and I'd be happy to
bundle it
> > in the Net_URL package.
>
> Are you talking about Foo Extends Net_URL?
Yup. eg:
class Net_URLParser extends Net_URL
{
...
}
--
Richard Heyes
V-webmail - http://www.v-webmail.co.uk