Re: any danger in overwriting $_GET ?
| From: | Wendell Brown | Date: | Tue, 15 Jul 2003 12:28:37 +0000 |
| Subject: | Re: any danger in overwriting $_GET ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155270@lists.php.net to get a copy of this message | ||
On Tue, 15 Jul 2003 14:52:36 +1000, Justin French wrote:
>My *aim* was to port the expected values in the URL (/cooking/154) into
>the $_GET superglobal array (eg $_GET['cat'] = 'cooking',
>$_GET['id'] =
>154), resulting in:
If you are on Apache, you can use mod rewrite to do this for you with
NO script changes. I use this on a couple of sites, the /1/2 gets
converted into "?vara=1&varb=2 in the call. Neither the search engine
nor the script can tell the difference. :)