RE: [PHP] register globals on

This is a discussion on RE: [PHP] register globals on within the PHP General forums, part of the PHP Programming Forums category; On 12 September 2006 08:18, Larry Garfield wrote: [...] > > In any vaguely recent version of PHP, you get ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-12-2006
Ford, Mike
 
Posts: n/a
Default RE: [PHP] register globals on

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0