Three ways Web server uses PHP to generate Web pages Summary _php tutorial

Source: Internet
Author: User
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 ...

  • Related Article

    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.