The difference between the get and post submissions in a hyper-global variable form commonly used in PHP what is the difference between a session and a cookie? What does the GD library do?

Source: Internet
Author: User

hyper-global variables commonly used in PHP

$_get----->get Transfer Mode
$_post----->post Transfer Mode
$_request-----> can receive values for get and post two ways
$GLOBALS-----> All the variables are in there.
$_files-----> Upload files using
$_server-----> System Environment variables
$_session-----> Session control will be used.
$_cookie-----> Session control will be used.

differences in how get and post submissions are in a form

Get is the URL where the parameter data queue is added to the Action property of the submission form, and the value corresponds to the field one by one in the form, which can be seen from the URL, the amount of data sent by the get is small; get security is very low;

Post is through the HttpPost mechanism, the form of the various fields and their contents in the head of the HTML to prevent the transfer to the URL address referred to by the Action property, the user does not see the process, the post transmits a large amount of data, post security is high;

the difference between a session and a cookie

Session: Stores the globally unique variables accessed by the user, stored in the location of PHP (Session_dir) in the specified directory on the server;
Cookie: Used to store continuous access to a page, is stored on the client, and is stored in the user win's temp directory for cookies.

What is the GD library for?

The GD library provides a range of APIs for working with images, using the GD library to process images, or to create images.
The GD library on the site is often used to generate thumbnails or to add watermarks to images or generate reports on site data.

The difference between the get and post submissions in a hyper-global variable form commonly used in PHP what is the difference between a session and a cookie? What does the GD library do?

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.