It just depends on the vars that the code expects. If it expects them to come via get, it may be $_GET, post, it may be $_POST. Or either of those could be in $_REQUEST (which is populated according to a config var) in a certain order from $_GET, $_POST, and $_COOKIE. In addition, $_GET can be in $HTTP_GET_VARS and $_POST can be in $HTTP_POST_VARS. Both those can be globals if you have register_globals on.
So.....there's a lot to set if you really want to emulate everything. On Sat, 03 Jul 2004 11:46:32 +1000, Trejkaz Xaoza <[EMAIL PROTECTED]> wrote: > Justin Patrin wrote: > > > On Sat, 03 Jul 2004 03:02:07 +1000, Trejkaz Xaoza <[EMAIL PROTECTED]> > > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > !DSPAM:40e60df175701962020657! > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

