An associative array containg references to all variables defined in the global scope of the script. The variable names are the keys of the array
Is an array that containing inforamtion such as headers, paths and script locations.
Prior to PHP 5.4.0, $HTTP_SERVER_VARS contained the same initial information, but was not a superglobal. (Note that $HTTP_SERVER_VARS and $_SERVER were different variables and that PHP handled them as such.)
⛔ You may or may not find any of the following elements in $_SERVER if running PHP on the command line.
Contains an array of all the arguments passed to the script when running from the command line.
The first argument $argv[0] is always the name that was used to run the script.
Return the number of arguments returned passed to the current script => the minumu value of $argc is 1
Name and revision of the information protocol via which the page was requested; i.e. 'HTTP/1.0';
Which request method was used to access the page; i.e. 'GET', 'HEAD', 'POST', 'PUT'.
The document root directory under which the current script is executing, as defined in the server's configuration file.
Contents of the Accept: header from the current request, if there is one.
Contents of the Accept-Charset: header from the current request, if there is one. Example: 'iso-8859-1,*,utf-8'.
Contents of the Accept-Encoding: header from the current request, if there is one. Example: 'gzip'.
The IP address from which the user is viewing the current page.
The absolute pathname of the currently executing script.
⛔ NB :