1, can local variables and global variable duplicate?
A: Yes, the local will screen the overall situation. To use a global variable, you need to use the "::"
Local variables can have the same name as global variables, and when referenced within a
The http/1.1 standard has been a widely used and prevailing standard since its inception in 1999.Related documentsRfc2616:hypertext Transfer Protocol--http/1.1In RFC6585, the status codes 428, 429, 431, 511 are added inRFC2616 developed a series of
This article will mainly introduce the receiving process of the request in Nginx, including the parsing of the request header and the reading process of the request body.
First, introduce the HTTP request basic format defined in rfc2616:
"Message" Understanding the HTTP Protocol's Request/response (request response) Model family CatalogIntroduction Request/Response modelHttp://www.cnblogs.com/engraver-lxw/p/7550514.html"principle" Understanding the HTTP Protocol's Request/response
ServerVariables set
ServerVariablesSet to retrieve predefined Environment VariablesSyntax
Request.ServerVariables (server environment variable)Parameters
Server environment variableName of the server environment variable to be
The request itself is a static object of the system and can also be called as an array. For exampleRequest ("abc") is to obtain the value corresponding to the "abc" in the request array. This array is not fixed, but a set of multiple arrays,
The Nginx core itself does not actively read the request body, which is given to the module at the request processing stage, but the Nginx core provides a ngx_http_read_client_request_body () interface to read the request body. In addition, an
#一, PHP variable definition: Variables are used to store values, such as numbers, text strings or arrays, V: string/integer/double/array/object
Naming rules:
1. The variable name of PHP is case-sensitive. 2. The variable name must begin with $3,
Using request. Params ["ID"] to obtain parameters is a more effective way.
There are three ways to pass parameters: (1). Form (2 ).? Id = (3). Cookie
Request. Params is actually a set of requests. querystring, request. Form, request. Cookies, and
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.