RE: [PHP] register globals on

From: Date: Tue, 12 Sep 2006 11:55:47 +0000
Subject: RE: [PHP] register globals on
Groups: php.general 
Request: Send a blank email to php-general+get-241655@lists.php.net to get a copy of this message
On 12 September 2006 08:18, Larry Garfield wrote: [...] > > In any vaguely recent version of PHP, you get five super-global array > variables: > > $_GET - any parameters passed in the GET string. > $_POST - any parameters passed in the body of a POST query. > $_REQUEST - The two above merged. I forget which takes precedence. > $_COOKIE - Any values sent by the browser as a cookie. Correction: $_GET - any parameters passed in the GET string. $_POST - any parameters passed in the body of a POST query. $_COOKIE - Any values sent by the browser as a cookie. $_REQUEST - The *three* above merged. I'm not sure whether $_REQUEST is affected by the variables_order configuration setting, but this could potentially affect both presence and precedence of the GPC variables in $_REQUEST. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#241655) next »