Folks,
I don’t understand this.
Can you list all the SuperGlobals you know ?
This tutorial:
lists SuperGlobals like so:
**$GLOBALS
$_SERVER
$_REQUEST
$_POST
$_GET
$_FILES
$_ENV
$_COOKIE
$_SESSION**
Note that, there is no “$_PHP_SELF” because according to that tutorial, the category is $_PHP_SELF”.
But the following tutorial sees differently and list “$
Like so:
**1
$GLOBALS**
Contains a reference to every variable which is currently available within the global scope of the script. The keys of this array are the names of the global variables.
**2
$_SERVER**
This is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these. See next section for a complete list of all the SERVER variables.
**3
$_GET**
An associative array of variables passed to the current script via the HTTP GET method.
**4
$_POST**
An associative array of variables passed to the current script via the HTTP POST method.
**5
$_FILES**
An associative array of items uploaded to the current script via the HTTP POST method.
**6
$_REQUEST**
An associative array consisting of the contents of $_GET, $
**7
$_COOKIE**
An associative array of variables passed to the current script via HTTP cookies.
**8
$_SESSION**
An associative array containing session variables available to the current script.
**9
$_PHP_SELF**
A string containing PHP script file name in which it is called.
**10
$php_errormsg**
Note that, the 2nd tutorial link doesn’t list the SuperGlobal “$_ENV”. Why ?
And the 1st tutorial doesn’t list the SuperGlobal “$php_errormsg”. Why ?
So, which tutorial correct ?
That is why I asked, you list all the SuperGlobals you know.