In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this article "what is the CGI mode in php", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the CGI mode in php" article.
Description
1. It is an important Internet technology that allows a client to request data from a web browser to a program executing on a web server.
2. CGI describes a standard for transferring data between a server and a request handler.
Operation principle of CGI mode
When Nginx receives the browser / index.php request, it first creates a process that implements the CGI protocol, here is php-cgi (PHP parser). Next, php-cgi parses the php.ini file, initializes the execution environment, processes the request, returns the processed result in the format specified by CGI, and exits the process. Finally, Nginx returns the results to the browser. The whole process is a Fork-And-Execute pattern. When the number of user requests is very large, it will occupy a large number of system resources such as memory, CPU time and so on, resulting in low performance. Therefore, under the CGI server, there will be as many CGI child processes as there are connection requests, and the main reason for the poor performance of CGI is that the child processes are loaded repeatedly.
What are the characteristics of php 1, the execution speed is fast.
2. It has good openness and expansibility.
3. PHP supports a variety of mainstream and non-mainstream databases.
Object-oriented programming: PHP provides classes and objects.
5. The update speed of the version is fast.
6. It has rich functions.
7. Scalability.
8. Comprehensive functions, including graphics processing, encoding and decoding, compressed file processing, xml analysis and so on.
The above is about the content of this article on "what is the CGI mode in php". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.