HTTP transaction execution process
1. The client (browser) makes a request operation (enter the URL, Click the link and submit the form).
2. The client resolves the domain name and requests the IP address from the set DNS server.
3. The client uses the three-way handshake to establish a TCP/IP connection with the server based on the IP address returned by the DNS server.
4. After the TCP/IP connection is successful, the client sends an HTTP request to the server.
5. The server-side Web Server will determine the resource type of the HTTP request and perform content distribution processing; if the requested resource is a PHP file, the server-side software will start the corresponding CGI program for processing and return the processing result.
6. The server responds to the client with the processing results of the Web Server.
7. The client receives the response from the server and renders the processing result. If the response content requires requesting other static resources, access the required resources through CDN.
8. The client presents the rendered view and disconnects the TCP/IP connection.
Related recommendations: "PHP Getting Started Tutorial"
Flowchart
The above is the detailed content of What is the process of nginx processing php requests?. For more information, please follow other related articles on the PHP Chinese website!