Thoroughly understand the operating principles of cgi, fastcgi, phpcgi, phpfpm and php in php

1.CGI The earliest web servers only processed static html files. With the continuous development of technology, websites become more and more complex, and then dynamic websites appear, but the service cannot directly run dynamic language files such as php and asp, and then cgi appears, which is just an interface protocol . The full name of CGI (Common Gateway Interface) is “Common Gateway Interface“, which is passed between the Web server and external applications (CGI programs). Information interface standard. Through the CGI interface, the Web server can obtain the information submitted by the client, and transfer it to the CGI program on the server side for processing, and finally return the result to the client. CGI can be written in any language, as long as the language has standard input, output, and environment variables. Such as php, perl, tcl, etc. The web server receives the request, and then forks a new process according to the content. This process will return the processed data to the web server, and finally the web server sends the content to the user. The fork process just now follows After exiting, if the user also requests to change the dynamic script next time, the web…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索