There are two primary ways for adding support for PHP to a web server – as a native web server module, or as a CGI executable. PHP carries a direct module interface called Server Application Programming Interface (SAPI), which is normally supported by many web servers including Apache HTTP Server, Microsoft IIS, Netscape (now defunct) and iPlanet. Several other web servers, such as OmniHTTPd, support the net Server Application Programming Interface (ISAPI), which is a Microsoft’s web server module interface. If PHP doesn’t have any module support for a web server, it might regularly be used as a Common Gateway Interface (CGI) or FastCGI processor; if so, the web server is configured to use PHP’s CGI executable to process all requests to PHP files. Find out more about PHP like PHP operators at our website.
PHP-FPM (FastCGI Process Manager) is definitely an alternative FastCGI implementation for PHP, bundled with the state PHP distribution since version 5.3.3. In comparison to the older FastCGI execution, it offers some additional features, mostly useful for heavily loaded web servers.
Whenever using PHP for command-line scripting, a PHP command-line interface (CLI) executable is essential. PHP supports a CLI server application programming interface (SAPI) by PHP 4.3.0. The principal focus of the SAPI is developing shell applications using PHP. There are a variety of differences in the middle of your CLI SAPI and extra SAPIs, although they do share the majority of the same behaviors.
PHP carries a direct module interface called SAPI for different web servers; in case of PHP 5 and Apache 2.0 on Windows, it truly is provided in kind of a DLL file called php5apache2.dll, which is a module that, among several other functions, comes with an interface between PHP and the web server, implemented within an application that the server understands. This form is what’s known as a SAPI.
There are various kinds of SAPIs for various web server extensions. For example, furthermore to those in the above list, additional SAPIs for the PHP language will be the Common Gateway Interface (CGI) and command-line interface (CLI).
PHP may be used for writing desktop graphical interface (GUI) applications, utilizing the PHP-GTK extension. PHP-GTK isn’t included in the recognized PHP distribution, and as an extension it may be used simply with PHP versions 5.1.0 and newer. The most typical method of installing PHP-GTK is definitely compiling it from the foundation code.
When PHP is installed and within cloud environments, software development kits (SDKs) are given for using cloud-specific features. For instance:
- Amazon Web Services supplies the AWS SDK for PHP
- Windows Azure can be utilized with the Windows Azure SDK for PHP.
Numerous configuration options are supported, affecting both core PHP features and extensions. Configuration file php.ini is searched for in different locations, based on the way PHP may be used. The configuration file is put into various sections, although some of the configuration options could be also arranged within the net server configuration.