PHP Predefined Variables!!
The PHP provides predefined variables to the script which it runs.
PHP provides an additional set of predefined arrays containing variables from the web server the environment, and user input.
The variables are automatically available in every scope.
Variable & It's Description.
There are large set of predefined variables for work with servers.
$_SERVER
This array contains information about headers, paths, and script locations.
There are many predefined server variables. we will see later it.
$_GET
Array of variables passed to the current script by the HTTP GET method.
$_POST
Array of variables passed to the current script through the HTTP POST method.
$_FILES
Array of items uploaded to the current script through the HTTP POST method.
$_REQUEST
Array consisting of the contents of $_GET, $_POST, and $_COOKIE.
$_COOKIE
Array of variables passed to the current script through HTTP cookies.
$_SESSION
Array containing session variables available to the current script.
$_PHP_SELF
A string containing PHP script file name in which it is called.
$php_errormsg
$php_errormsg is a variable which contains text of the last error message of PHP.
$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.
$_SERVER
$_SERVER is an array contains the information about headers, paths, and script locations.
$_SERVER['PHP_SELF']
The filename of the currently executing script, relative to the document root
$_SERVER['argv']
Array of arguments passed to the script.
$_SERVER['argc']
If the script run on the command line Then number of command line parameters passed.
$_SERVER['GATEWAY_INTERFACE']
Version of CGI.
$_SERVER['SERVER_ADDR']
The IP address of the server.
$_SERVER['SERVER_NAME']
It returns the name of the server host.
$_SERVER['SERVER_SOFTWARE']
Server identification string, given in the headers when responding to requests.
$_SERVER['SERVER_PROTOCOL']
Gives the information about protocol from which page is requested.
$_SERVER['REQUEST_METHOD']
Shows which request method was used to access the page; example : 'GET', 'HEAD', 'POST', 'PUT'.
$_SERVER['REQUEST_TIME']
The timestamp of the start of the request. Available since PHP 5.1.0.
$_SERVER['QUERY_STRING']
Returns the query from which current page is accessed.
$_SERVER['DOCUMENT_ROOT']
The document root directory under which the current script is executing, as defined in the server's configuration file.
$_SERVER['HTTP_ACCEPT']
Contents of the Accept: header from the current request, if there is one.
$_SERVER['HTTP_ACCEPT_LANGUAGE']
It contents of the Accept-Language from header Example: 'en'.
$_SERVER['HTTP_CONNECTION']
It returns the current situation of header for example : 'keep-alive'.
$_SERVER['HTTP_HOST']
It contents of the Host: header from the current request.
$_SERVER['REMOTE_ADDR']
The IP address from which the user is viewing the current page.
$_SERVER['REMOTE_HOST']
Current page address which is seen by user.
$_SERVER['REMOTE_PORT']
Remote port means port number of server where data is stored.
$_SERVER['SCRIPT_FILENAME']
Return the full path with file name which is currently executed.
$_SERVER['SERVER_PORT']
Return the port number of the server. example port number '80'.
$_SERVER['SERVER_SIGNATURE']
String containing the server version and virtual host name which are added to server-generated pages, if enabled.
$_SERVER['PATH_TRANSLATED']
File system based path to the current script.
$_SERVER['SCRIPT_NAME']
Return the current script's path.
$_SERVER['REQUEST_URI']
The URI which was given in order to access this page; for instance, '/index.html'.
You Can Also Search For :
Mesothelioma Survival Rates , Mesothelioma Attorneys California , Seattle Mesothelioma Lawyer , Mesothelioma Suit , Mesothelioma Claim , Wisconsin Mesothelioma Attorney , Mesothelioma Attorney illinois , Mesothelioma Trial Attorney ,Houston Mesothelioma Attorney , Mesothelioma Lawyer Dallas , New York Mesothelioma Law Firm,Mesothelioma Lawyer Asbestos Cancer Lawsuit , Mesothelioma Lawyers San Diego,Mesothelioma Litigation , Mesothelioma Attorney Assistance , Mesothelioma Lawyer Asbestos Cancer Lawsuit , Mesothelioma Lawyer Chicago , New York Mesothelioma Law Firm ,
Houston Mesothelioma Attorney , Mesothelioma Lawyer Dallas , Mesothelioma Care , Mesothelioma Trial Attorney , Mesothelioma Lawyer Texas , Lawsuit Mesothelioma , Truck Accident Attorney Los Angeles ,Asbestos Exposure Lawyers , Mesothelioma Cases , Emergency Response Plan ppt , Mesothelioma Lawyers San Diego , Asbestos Mesothelioma Lawsuit , Tennessee Mesothelioma Lawyer , Meso Lawyer , Mesothelioma Settlements Amounts , Mesothelioma Law Firms , New Mexico Mesothelioma Lawyer , Accident Attorneys Orange County , Mesothelioma Lawsuit ,Personal Injury Accident Lawyer , Purchase Structured Settlements , Firm Law Mesothelioma , Car Accident Lawyers Los Angeles , Mesothelioma Attorneys , Structured Settlement Company , Auto Accident Lawyer San Francisco , Mesotheolima , Los Angeles Motorcycle Accident Lawyer
Mesothelioma , Mesothelioma Lawyer Virginia , Seattle Mesothelioma Lawyer , Mesothelioma Attorney illinois , Mesothelioma Drug , Mesothelioma Attorney DirectoryMesothelioma Settlements , Mesothelioma Help , Mesothelioma ct , Mesothelioma Attorney Florida , Washington Mesothelioma Attorney , Best Mesothelioma Lawyers , Diagnosed With Mesothelioma , Mesothelioma Settlement Amounts , Mesothelioma Personal Injury Lawyers , Mesothelioma Compensation , Attorney Lawyer Mesothelioma ,Colorado Mesothelioma Lawyers,Mesothelioma Lawsuits , Mesothelioma Claims , Average Mesothelioma Settlement , Average Mesothelioma Settlement , Mesothelioma Law Suit , Alabama Mesothelioma Lawyer , alabama Mesothelioma Lawyer , utah mesothelioma lawyer , Dallas Mesothelioma Lawyer , Mesothelioma Attorney California , Mesothelioma Lawyer California ,Mesothelioma Survival Rates ,
Mesothelioma Attorneys California, Wisconsin Mesothelioma Attorney Mesotheliama , Mesothelioma Lawyer Virginia , Seattle Mesothelioma Lawyer , Mesothelioma Attorney illinois, Mesothelioma Trial Attorney Injury Lawyer Houston tx , Baltimore Mesothelioma Attorneys , Mesothelioma Care ,Mesothelioma Trial Attorney ,Mesothelioma Lawyer Texas , Mesothelioma Lawyer Dallas , Mesothelioma Care , Mesothelioma Trial Attorney , Mesothelioma Lawyer Texas , California Mesothelioma Attorney Philadelphia Mesothelioma Lawyer , Illinois Mesothelioma Lawyer , Mesothelioma Attorney , Mesothelioma Claims , Average Mesothelioma Settlement
Integrated ehr , Mesothelioma Law Sui , Mesothelioma Lawyer California,Mesothelioma Attorney California ,Mesothelioma Law Suits ,Dallas Mesothelioma Attorneys ,Mesothelioma Drug ,Mesothelioma Attorney Directory