Re: Net_URL don't use $_SERVER

From: Date: Mon, 20 Jan 2003 12:42:22 +0000
Subject: Re: Net_URL don't use $_SERVER
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12615@lists.php.net to get a copy of this message
> 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. > Also, I found that $_SERVER isn't being used, since it users > $HTTP_SERVER_VARS, so it just work on the old PHP versions. Right? So, > what about this patch? $HTTP_SERVER_VARS works on all PHP versions. -- Richard Heyes V-webmail - http://www.v-webmail.co.uk

« previous php.pear.dev (#12615) next »