Php and http (php pre-defined variable) var_dump ($ _ SERVER [REQUEST_URI]); var_dump ($ this-& gt; request-& gt; getRequestType ()); var_dump ($ this-& gt; request-& gt; getIsAjaxRequest (); print the string (87) om php and http (php pre-defined variables)
Var_dump ($ _ SERVER ['request _ URI ']);
Var_dump ($ this-> request-> getRequestType ());
Var_dump ($ this-> request-> getIsAjaxRequest ());
// Print Information
String (87) "/oms07/index. php? R = preShow/searchFails & idcName = JX & fromTime = 2012-02-29 & toTime = 2012-02-29"
String (3) "GET"
Bool (false)
PHP provides a large number of predefined variables to all scripts. The variables represent everything from external variables to built-in environment variables, last error messages to last retrieved headers.
Superglobals-Superglobals are built-in variables that are always available in all scopes
$ GLOBALS-References all variables available in global scope
$ _ SERVER-Server and execution environment information
$ _ GET-http get variables
$ _ POST-http post variables
$ _ FILES-HTTP File Upload variables
$ _ REQUEST-HTTP Request variables
$ _ SESSION-Session variables
$ _ ENV-Environment variables
$ _ COOKIE-HTTP Cookies
$ Php_errormsg-The previous error message
$ HTTP_RAW_POST_DATA-Raw POST data
$ Http_response_header-HTTP response headers
$ Argc-The number of arguments passed to script
$ Argv-Array of arguments passed to script