您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php与http(php预约义变量)

2024/2/21 4:09:39发布18次查看
php与http(php预定义变量)
var_dump($_server['request_uri']);
var_dump($this->request->getrequesttype());
var_dump($this->request->getisajaxrequest());
//打印信息
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
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product