Find what was found in the mysql help document during mysql_pconnect, and record it here.
The web server uses php to generate a web page in three ways:
I. Use PHP as CGI Wrapper. In this way, each request to reach the web server will cause a php parser process to be created. When the execution of this php page ends, the php parser process will terminate.
II:
In a multi-process web server, php is used as the web
Server. This is currently the most popular practice, but this method is only used by apahce. A multi-process web
Server usually has a parent process that coordinates a bunch of sub-processes to work. When a page request arrives at the web
The parent process sends the request to an idle sub-process for completion. The two requests of the same client may not be processed by the sub-processes of the same web server.
3. Use php as a plug-in a multi-threaded web server. For example, IIS uses this method. It works in the same way as a multi-process, but it uses threads instead of processes.