Justin Patrin wrote: > 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.
Well, the code is not my code. It's any code which might be written by someone using PHP-Mesh in the future. So I guess I have to set a hell of a lot of these to make pretend. That being said I only really need to deal with the GET, I guess. Cookies I can treat as being correctly sent already, POST I will just clear out before doing the call (i.e., you can't post to a portlet), and GET I'll populate using parse_str on the query string provided. $_REQUEST is a trouble-maker, and I might just have to forget about it, and tell people to populate it themselves since the function to do so is so easy to use. But the rest is working already so I guess I'm just down to testing it now. Thanks! TX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php