Found on the MySQL help document when looking for Mysql_pconnect, which is recorded here.
Web server uses PHP to generate a Web page with the following three kinds of three-way:
One: Use PHP as a CGI Wrapper. In this way, each request to reach the Web server causes a PHP parser process to be created, and when the PHP page executes, the PHP parser process terminates.
Second: In a multi-process Web server, PHP is used as a module of the Web server. This is currently the most popular practice, but currently only APAHCE used this way. A multi-process Web server typically has a total parent process that coordinates a heap of child processes to work. When a page request arrives at Web server, the parent process gives the request to a free child process to complete. Two requests from the same client are not necessarily handled by the same child process of the same Web server.
Three: In the multi-threaded Web server, PHP as a plug-in. For example, IIS uses this approach. It works the same way as multi-process work, but it uses threads rather than processes.
http://www.bkjia.com/PHPjc/824909.html www.bkjia.com true http://www.bkjia.com/PHPjc/824909.html techarticle found on the MySQL help document when looking for Mysql_pconnect, which is recorded here. Web server uses PHP to generate a Web page with the following three types: one: PHP as a CGI Wrapper. This kind of party ...