Php Super global variable collection

Source: Internet
Author: User
Php hyper-global variable $ globals: contains a reference to a valid variable within the global range of each current script. the key of this array is the name of the global variable, $ globals array $ _ server exists from php3: the variable is set by the web server or directly

Php hyper-global variable $ globals: contains a reference to a valid variable within the global range of each current script. the key of this array is the name of the global variable, $ globals array exists from php 3.

$ _ Server: the variable is set by the web server or directly associated with the execution environment of the current script, similar to the old array $ http_server_vars (still valid, but not used ).

$ _ Get: variables submitted to the script through the http get method.

$ _ Post: the variable submitted to the script through the http post method.

$ _ Cookie: variables submitted to the script through http cookies.

$ _ Files: variables submitted to the script by uploading the http post file.

The file upload form must contain enctype = "multipart/form-data ".

$ _ Env: the variable submitted to the script in the execution environment.

$ _ Request: variables submitted to the script through get, post, and cookie mechanisms. Therefore, this array is not trustworthy, the existence or absence of all the variables contained in the array and the sequence of the variables are in php. the variables_order configuration indicator in ini is defined. this array does not directly simulate earlier versions of php 4.1.0. For more information, see import_request_variables ().

Note: Since php 4.3.0, the file information in $ _ files no longer exists in $ _ request.

$ _ Session: the variable currently registered to the script session.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.