Server Application Programming Interface
In computer science, the Server Application Programming Interface (SAPI) is the generic term used to designate direct module interfaces to web server applications such as the Apache HTTP Server, Microsoft IIS or iPlanet. Microsoft also uses the term in ISAPI and the defunct Netscape web server used the term NSAPI. 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. For PHP 5 and Apache 2.0 on Windows, it is in the form of a DLL file called "php5apache2.dll." That DLL is a module which — 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 different web server extensions. For example, another two SAPIs for the PHP language are PHP Common Gateway Interface (CGI) and PHP Command-line interface (CLI).
- Application programming interface (API)
- Internet Server Application Programming Interface (ISAPI)
- Common Gateway Interface (CGI)
- FastCGI (a variation of the CGI)
- "Netscape Server Application Programming Interface (NSAPI)". Tech Target. September 2005. Retrieved 2013-09-22.
- "General Installation Considerations". PHP.net. Retrieved 2013-09-22.
- "PHP: Apache 2.x on Microsoft Windows". PHP.net. Retrieved 2013-09-22.
- "Command line usage: Introduction". PHP.net. Retrieved 2013-09-22.
|This computer programming-related article is a stub. You can help Wikipedia by expanding it.|