Section 16.1. Introduction


16.1. Introduction

Traditionally, PHP is used in web environments to produce HTML markup that the user views in a web browser. The interaction between PHP and the web server (Apache, AOLserver, Microsoft IIS, or whatever) happens through a layer called SAPI (short for web Server API). A separate build of PHP is required to interface with each type of web server through SAPI.

In this chapter, you explore the CLI (short for Command Line Interface) server API, which makes PHP a traditional scripting language. This chapter demonstrates using CLI for writing command-line tools as well as a stand-alone server application.

Figure 16.1 shows what parts of PHP are present when it is built for different SAPI implementations.

Figure 16.1. Parts of PHP present when built for different SAPI implementations.




    PHP 5 Power Programming
    PHP 5 Power Programming
    ISBN: 013147149X
    EAN: 2147483647
    Year: 2003
    Pages: 240

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net