Re: How to access $_GET while using mod_rewrite

From: Date: Mon, 16 Feb 2004 15:31:37 +0000
Subject: Re: How to access $_GET while using mod_rewrite
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177812@lists.php.net to get a copy of this message
I am using mod_rewrite which makes it impossible to use the $_GET function.
that depends... if you would translate the fake url www.yoursite.org/par1/val1/parameter2/value2 to www.yoursite.org?page.php?par1=val1&parameter2=value2 you are ready. Check the net for quite some examples.
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.
Ok if you want to do it that way, what about this idea: $array1= explode ('&','cc=br&pr=04&lcarray=1&idarray=816083'); then walk through array 1 and for each item in it array1 { list ($key,$val)=explode ('=',$array1[$i]); $$key=$val; }

« previous php.general (#177812) next »