Php Super global variable collection

Source: Internet
Author: User
Tags file upload http post php tutorial valid

Super global variable $ globals in the php Tutorial: contains a reference variable that is valid globally for each current script. The key of the array is the name of the global variable. $ Globals array exists from php 3.
$ _ Server: variables are set by the web server or directly associated with the execution environment of the current script. Similar to the old $ http_server_vars array (still valid, but not used ).
$ _ Get: the variable 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.
Enctype = "multipart/form-data" must be included in the file upload form"
$ _ Env: the variable submitted to the script in the execution environment.
$ _ Request: the variables submitted to the script through get, post, and cookie mechanisms. Therefore, this array is not trustworthy. All the existence or not of the variables contained in the array and the Order of the variables are defined according to the variables_order configuration instructions in php. ini. This array does not directly simulate earlier versions of php 4.1.0. 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.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.