Super Globals - PHP Tutorials

PHP - Hypertext Preprocessor

PHP Hypertext Preprocessor
Developer Rasmus Ledorf
Year 1994


PHP - Super Globals

Super Globals are built in variable that are always available in all scope. in other words Super Globals are pre-defined variable which means that they are always accessible, regardless of scope - and you can access them from any function, class or file without having to do anything special.
These Super Globals are introduced in the PHP version 4.1.The Super Globals which makes PHP as super attractive and effective, The each super global has some different features which can be access from the anywhere of the site, some super Globals are $_GET, $_POST, $COOKIE, $_REQUEST, $_SERVER, $_SESSION are key elements to the website and website builder. The features of each super globals are described below.
Super Globals Description
$_GET Data sent to the PHP Script in URL
$_POST Data sent to PHP Script via HTTP POST. This is normaly a form with method of POST.
$_COOKIE Data available to the PHP Script via HTTP Cookies.
$_REQUEST Combination of $_GET, $_POST and $_COOKIE
$_SESSION Data available to PHP Script that has previously been stored in a Session.
$_SERVER Data available to PHP Script from the web server itself.
$_ENV Data available to PHP Script for the environment in which PHP is wroking
$_FILES Data available to a PHP Scripts from HTTP POST file uploads
$GLOBALS Store every variable with global scope
Get Related News: , ,

0 comments:

Thanks for taking time to leave a comment