PHP Super Global variables

Source: Internet
Author: User
Tags unique id

$_get: Get value on Address bar

$_post:post form sending data

$_request: There is a get and post content

If the post and get names are the same: then it is up to the setup item, such as request_crder= "GP", which is to store get again post if duplicate name get overwrites post

The sequencing can be set in php.ini: request_crder= "GP";

$_ENV: Environment variables for server operating systems such as operating system type Linux win MAC environment variables, etc.

This thing designed system security issues to be set disable php.ini find varables_order= "egpcs" Remove E on the line

$_server: Web content such as header information path script location

$_globals: is an alias to the global variable roster, through which the global variable can be accessed arbitrarily $a =3 so B; $b =4 function t () {print (globals) all variables print globals[a]=99 so a=99. }

$_session: Create a unique ID for each visitor the Session_Start () function must precede the

<?php session_start ();?>

$_cookie:cookie are often used to identify users. A cookie is a small file that the server leaves on the user's computer. Whenever the same computer requests a page through a browser, it also sends a cookie. With PHP, you can create and retrieve the value of the cookie before you put it in the HTML tag

$_files: When the client commits, we get a $_files array

PHP Super Global variables

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.