SóProvas


ID
1226977
Banca
CESPE / CEBRASPE
Órgão
TJ-SE
Ano
2014
Provas
Disciplina
Programação
Assuntos

Com relação a servidores de aplicação e à preparação de serviços Web, julgue os itens que se seguem.

Para usar PHP como manipulador de scripts do lado servidor em conjunto com um servidor HTTP Apache 2.x em plataforma Microsoft Windows, é necessário que se especifique, na configuração do servidor HTTP, uma interface direta de módulo, também chamada de SAPI (Server Application Programming Interface).

Alternativas
Comentários
  • In computer scienceServer Application Programming Interface (SAPI) is a generic term used to designate direct module interfaces to web server applications such as theApache HTTP ServerMicrosoft IIS or iPlanetMicrosoft also uses the term in ISAPI and the defunct Netscape web server used the term NSAPI.[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] For PHP 5 and Apache 2.0 on Windows, it is in the form of a DLL file calledphp5apache2.dll.[3] 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 PHPCommand-line interface (CLI).[2][4]