Things to consider before installing PHP installation and configuration

Source: Internet
Author: User
Tags gtk php language netscape web server sapi microsoft iis

This article introduces the content of "PHP installation and Configuration" before the installation needs to consider, has a certain reference value, now share to everyone, the need for friends can refer to

PHP Application areas:

    • Web sites and Web applications (server-side scripting)

    • Command-line scripting

    • Desktop (GUI) applications

Need:

    • PHP itself

    • A Web server (for example, IIS under Apache;windows under Linux and MacOS)

    • A Web browser

Connect PHP to the server

    • For many servers, PHP has a direct module interface (also called SAPI). These servers include Apache, Microsoft Internet Information Server, Netscape, and IPlanet. Many other servers support ISAPI, the Microsoft Module interface (OMNIHTTPD is an example).

    • If PHP cannot support a Web server as a module, it can always be used as a CGI or FastCGI processor. This means you can use PHP's CGI executable to process PHP file requests on all servers.

SAPI

In calculations, the Server Application Programming interface (SAPI) is the direct module interface for Web servers such as Apache HTTP server,microsoft IIS and Oracle iPlanet Web server. Microsoft uses the term Internet Server Application programming Interface (ISAPI), which disables the Netscape Web server by using the term Netscape Server Application programming Interface (NSAPI) to achieve the same purpose. [1] In other words, SAPI is an application programming interface (API) to help other developers extend the functionality of the Web server.

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 in Windows, it is provided in a form of DLL called file Php5apache2.dll,[3] This is a module which, in addition to other functions, provides PHP and interface between the Web server, Implemented in a server-understandable form. This form is called the SAPI.

Various network server extensions exist in different kinds of SAPI. For example, other SAPI in the PHP language include the Public Gateway Interface (CGI) and the Command line interface (CLI), in addition to those listed above.

PHP Command Line script

    • A command line executable program is required.

    • Servers and browsers are not required.

Desktop (GUI) applications

Write by PHP-GTK Extension

PHP Application areas:

    • Web sites and Web applications (server-side scripting)

    • Command-line scripting

    • Desktop (GUI) applications

Need:

    • PHP itself

    • A Web server (for example, IIS under Apache;windows under Linux and MacOS)

    • A Web browser

Connect PHP to the server

    • For many servers, PHP has a direct module interface (also called SAPI). These servers include Apache, Microsoft Internet Information Server, Netscape, and IPlanet. Many other servers support ISAPI, the Microsoft Module interface (OMNIHTTPD is an example).

    • If PHP cannot support a Web server as a module, it can always be used as a CGI or FastCGI processor. This means you can use PHP's CGI executable to process PHP file requests on all servers.

SAPI

In calculations, the Server Application Programming interface (SAPI) is the direct module interface for Web servers such as Apache HTTP server,microsoft IIS and Oracle iPlanet Web server. Microsoft uses the term Internet Server Application programming Interface (ISAPI), which disables the Netscape Web server by using the term Netscape Server Application programming Interface (NSAPI) to achieve the same purpose. [1] In other words, SAPI is an application programming interface (API) to help other developers extend the functionality of the Web server.

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 in Windows, it is provided in a form of DLL called file Php5apache2.dll,[3] This is a module which, in addition to other functions, provides PHP and interface between the Web server, Implemented in a server-understandable form. This form is called the SAPI.

Various network server extensions exist in different kinds of SAPI. For example, other SAPI in the PHP language include the Public Gateway Interface (CGI) and the Command line interface (CLI), in addition to those listed above.

PHP Command Line script

    • A command line executable program is required.

    • Servers and browsers are not required.

Desktop (GUI) applications

Write by PHP-GTK Extension

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.