Jump to content

Server application programming interface: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
ce
Undid revision 662669204 by 134.134.137.71 (talk) Copyediting? Copyediting would involve writing style changes etc.
Line 1: Line 1:
{{Other uses|SAPI (disambiguation){{!}}SAPI}}
{{Other uses|SAPI (disambiguation){{!}}SAPI}}


In [[computing]], '''Server Application Programming Interface''' ('''SAPI''') is the direct module interface to [[web server]]s such as the [[Apache HTTP Server]], [[Microsoft Internet Information Server|Microsoft IIS]], and [[Oracle iPlanet Web Server]]. [[Microsoft]] also uses the term [[Internet Server Application Programming Interface]] (ISAPI), and the defunct [[Netscape]] web server used the term [[Netscape Server Application Programming Interface]] (NSAPI) for the same purpose.<ref>{{cite web
In [[computing]], '''Server Application Programming Interface''' ('''SAPI''') is the direct module interface to [[web server]]s such as the [[Apache HTTP Server]], [[Microsoft Internet Information Server|Microsoft IIS]], and [[Oracle iPlanet Web Server]]. [[Microsoft]] also uses the term [[Internet Server Application Programming Interface]] (ISAPI), and the defunct [[Netscape]] web server used the term [[Netscape Server Application Programming Interface]] (NSAPI) for the same purpose.<ref>{{cite web
| url = http://searchsoa.techtarget.com/definition/Netscape-Server-Application-Programming-Interface
| url = http://searchsoa.techtarget.com/definition/Netscape-Server-Application-Programming-Interface
| title = Netscape Server Application Programming Interface (NSAPI)
| title = Netscape Server Application Programming Interface (NSAPI)
| date = September 2005 | accessdate = 2013-09-22
| date = September 2005 | accessdate = 2013-09-22
| website = techtarget.com
| 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.
}}</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
As an example, [[PHP]] has a direct module interface called SAPI for different web servers;<ref name="php-installation">{{cite web
Line 13: Line 13:
| accessdate = 2013-09-22
| accessdate = 2013-09-22
| website = php.net
| website = php.net
}}</ref> in case of {{nowrap|PHP 5}} and {{nowrap|Apache 2.0}} on Windows, it is provided in form of a [[Dynamic-link library|DLL]] file called {{Mono|php5apache2.dll}},<ref>{{cite web
}}</ref> in case of PHP&nbsp;5 and Apache&nbsp;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
| url = http://php.net/manual/en/install.windows.apache2.php
| title = PHP: Apache 2.x on Microsoft Windows
| title = PHP: Apache 2.x on Microsoft Windows
| accessdate = 2013-09-22
| accessdate = 2013-09-22
| website = php.net
| 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.
}}</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, another two SAPIs for the PHP language are [[Common Gateway Interface]] (CGI) and [[command-line interface]] (CLI).<ref name="php-installation" /><ref>{{cite web
There are different kinds of SAPIs for various web server extensions. For example, another two SAPIs for the PHP language are [[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
| url = http://www.php.net/manual/en/features.commandline.introduction.php
| title = Command line usage: Introduction
| title = Command line usage: Introduction

Revision as of 22:58, 16 May 2015

In computing, Server Application Programming Interface (SAPI) is the direct module interface to web servers such as the Apache HTTP Server, Microsoft IIS, and Oracle iPlanet Web Server. Microsoft also uses the term Internet Server Application Programming Interface (ISAPI), and the defunct Netscape web server used the term Netscape Server Application Programming Interface (NSAPI) for the same purpose.[1] 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;[2] in case of PHP 5 and Apache 2.0 on Windows, it is provided in form of a DLL file called php5apache2.dll,[3] 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, another two SAPIs for the PHP language are Common Gateway Interface (CGI) and command-line interface (CLI).[2][4]

See also

References

  1. ↑ "Netscape Server Application Programming Interface (NSAPI)". techtarget.com. September 2005. Retrieved 2013-09-22.
  2. 1 2 "General Installation Considerations". php.net. Retrieved 2013-09-22.
  3. ↑ "PHP: Apache 2.x on Microsoft Windows". php.net. Retrieved 2013-09-22.
  4. ↑ "Command line usage: Introduction". php.net. Retrieved 2013-09-22.