RE: [PHP] How to access $_GET while using mod_rewrite

From: Date: Mon, 16 Feb 2004 15:24:20 +0000
Subject: RE: [PHP] How to access $_GET while using mod_rewrite
Groups: php.general 
Request: Send a blank email to php-general+get-177811@lists.php.net to get a copy of this message
On 16 February 2004 15:19, Merlin wrote: > Hi there, > > I am using mod_rewrite which makes it impossible to use the $_GET > function. > > However, it should be possible to do the same with a function. > > I figured out how to get the parameter string out of the url, now I am > stuck in splitting those values into associated array elements. > > Here is what it looks like: > cc=br&pr=04&lcarray=1&idarray=816083 > > Has anybody an idea on how to put this into an array to make it > accesible like this: > > $para[cc] > $para[pr] > etc. Try parse_str() (http://www.php.net/parse-str). Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#177811) next »