[php installation and configuration] Things to consider before installation

不言
Release: 2023-03-24 11:40:01
Original
2035 people have browsed it

The content of this article is about [php installation and configuration] matters that need to be considered before installation. It has a certain reference value. Now I share it with you. Friends in need can refer to it

php application areas:

  • Websites and web applications (server-side scripts)

  • Command line scripts

  • Desktop (GUI) Application


Requires:

  • PHP itself

  • A web server (such as Apache under Linux and MacOS; IIS under Windows)

  • A web browser


Connecting PHP to the server

  • For many servers, PHP has a direct module interface (also called SAPI) . These servers include servers such as Apache, Microsoft Internet Information Server, Netscape, and iPlanet. Many other servers support ISAPI, Microsoft's modular interface (OmniHTTPd is one example).

  • If PHP does not support the web server as a module, it can always be used as a CGI or FastCGI processor. This means that PHP's CGI executable can be used to handle PHP file requests on all servers.


SAPI

In computing, the Server Application Programming Interface (SAPI) is a tool for web servers such as Apache HTTP Server, Microsoft IIS, and Oracle iPlanet Web Server ) direct module interface. Microsoft uses the term Internet Server Application Programming Interface (ISAPI), while the defunct Netscape web server uses the term Netscape Server Application Programming Interface (NSAPI) for the same purpose. [1] In other words, SAPI is an application programming interface (API) to help other developers extend web server functionality.

For example, PHP provides a direct module interface called SAPI for different web servers; [2] In the case of PHP 5 and Apache 2.0 on Windows, it is provided in the form of a DLL called File php5apache2.dll, [3] This is a module that, among other things, provides an interface between PHP and a web server, implemented in a form understandable by the server. This form is called 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 the Command Line Interface (CLI).


PHP command line script

  • Requires a command line executable program.

  • No server or browser required.


Desktop (GUI) application

Written via the PHP-GTK extension

php Application areas:

  • Websites and web applications (server-side scripting)

  • Command line scripting

  • Desktop (GUI) Application


Requires:

  • PHP itself

  • A web server (such as Apache under Linux and MacOS; IIS under Windows)

  • A web browser


Connecting PHP to the server

  • For many servers, PHP has a direct module interface (also called SAPI). These servers include servers such as Apache, Microsoft Internet Information Server, Netscape, and iPlanet. Many other servers support ISAPI, Microsoft's modular interface (OmniHTTPd is one example).

  • If PHP does not support the web server as a module, it can always be used as a CGI or FastCGI processor. This means that PHP's CGI executable can be used to handle PHP file requests on all servers.


SAPI

In computing, the Server Application Programming Interface (SAPI) is a tool for web servers such as Apache HTTP Server, Microsoft IIS, and Oracle iPlanet Web Server ) direct module interface. Microsoft uses the term Internet Server Application Programming Interface (ISAPI), while the defunct Netscape web server uses the term Netscape Server Application Programming Interface (NSAPI) for the same purpose. [1] In other words, SAPI is an application programming interface (API) to help other developers extend web server functionality.

For example, PHP provides a direct module interface called SAPI for different web servers; [2] In the case of PHP 5 and Apache 2.0 on Windows, it is provided in the form of a DLL called File php5apache2.dll, [3] This is a module that, among other things, provides an interface between PHP and a web server, implemented in a form understandable by the server. This form is called 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 the Command Line Interface (CLI).


PHP command line script

  • Requires a command line executable program.

  • No server or browser required.


Desktop (GUI) application

Written through PHP-GTK extension

Related recommendations:

[php installation and configuration]Installation under Unix system

The above is the detailed content of [php installation and configuration] Things to consider before installation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template