Content deleted Content added
reverted POV-pushing about PHP. |
|||
Line 5:
| website = techtarget.com
}}</ref> In other words, SAPI is actually an [[application programming interface]] (API) provided by the web server to help other developers in extending the web server capabilities.
As an example, [[PHP]] has a direct module interface called SAPI for different web servers;<ref name="php-installation">{{cite web
| url = http://php.net/manual/en/install.general.php
| title = General Installation Considerations
| accessdate = 2013-09-22
| website = php.net
}}</ref> in case of PHP 5 and Apache 2.0 on Windows, it is provided in form of a [[Dynamic-link library|DLL]] file called {{Mono|php5apache2.dll}},<ref>{{cite web
| url = http://php.net/manual/en/install.windows.apache2.php
| title = PHP: Apache 2.x on Microsoft Windows
| accessdate = 2013-09-22
| website = php.net
}}</ref> which is a module that, among other functions, provides an interface between PHP and the web server, implemented in a form that the server understands. This form is what is known as a SAPI.
There are different kinds of SAPIs for various web server extensions. For example, in addition to those listed above, other SAPIs for the PHP language include the [[Common Gateway Interface]] (CGI) and [[command-line interface]] (CLI).<ref name="php-installation" /><ref>{{cite web
| url = http://www.php.net/manual/en/features.commandline.introduction.php
| title = Command line usage: Introduction
| accessdate = 2013-09-22
| website = php.net
}}</ref>
== See also ==
|