Re: Why FastCGI?

From: Date: Thu, 25 Mar 2021 16:43:01 +0000
Subject: Re: Why FastCGI?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-327523@lists.php.net to get a copy of this message
See Common Gateway Interface - Wikipedia <https://en.wikipedia.org/wiki/Common_Gateway_Interface>. It says:
The form's data is sent to the Web server within an HTTP request with a URL denoting a CGI script. The Web server then launches the CGI script in a new computer process, passing the form data to it. The output of the CGI script, usually in the form of HTML, is returned by the script to the Web server, and the server relays it back to the browser as its response to the browser's request. For PHP, the CGI script (and the form) is the PHP file. The input is received using HTTP and the output of PHP is provided to the server and returned to the client using HTTP.
See RFC 3875 - The Common Gateway Interface (CGI) Version 1.1 <https://tools.ietf.org/html/rfc3875>. It is the official definition CGI. Other protocols such as FastCGI perform the same function but are designed to be more efficient. The following are excerpts of the RFC.
Abstract    The Common Gateway Interface (CGI) is a simple interface for running    external programs, software or gateways under an information server    in a platform-independent manner.  Currently, the supported    information servers are HTTP servers. 1. Introduction 1.1. Purpose {Two paragraphs omitted from here}    The server is responsible for managing connection, data transfer,    transport and network issues related to the client request, whereas    the CGI script handles the application issues, such as data access    and document processing.
Andrey Repin wrote on 3/25/2021 2:06 AM:
CGI is a protocol of exchanging information between client and server.


« previous php.general (#327523) next »