Re: include() with a query string?

From: Date: Sat, 03 Jul 2004 01:46:32 +0000
Subject: Re: include() with a query string?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-189602@lists.php.net to get a copy of this message
Justin Patrin wrote: > On Sat, 03 Jul 2004 03:02:07 +1000, Trejkaz Xaoza <trejkaz@xaoza.net> > wrote: >> >> >> Is there some way to fake inclusion with a query string attached? >> > > Yep. Set the $_GET, $_POST, or $_REQUEST vars you need before > including. You could also store a backup copy before doing this and > put it back after the include if you need it. Okay. This is the way I'm going then. I just noticed also that although $HTTP_GET_VARS is supposed to be an alias for $_GET, I still have to set both variables to account for users' behaviour. (Either that, or I forget about $HTTP_GET_VARS and tell users if it's deprecated in PHP, it's unsupported by my code.) And also, what should I do with $_REQUEST? Do users have to call a function to get that to populate? If that's the case I can silently ignore it since it isn't used anywhere in my code. TX

« previous php.general (#189602) next »