Php-cli introduction (Shell is not used in the same way as the Shell language ). 1. Basics 1.1 What is Shell programming? In Unix, shell is not a simple command interpreter (typical DOS in Windows), but a fully functional programming environment.
See full name to know, PHP-CLI is the short name of PHP command line interface, that is, the PHP interface, in Windows and Linux are supported PHP-CLI mode, in fact, both, I have written before:One, window run the PHP program at the command
PHP operating mode has 5 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI command line run (Interface)4) ISAPI mode (used in Windows)5) Web module mode (module mode for Web server
Introduction to PHP_CLI Mode
PHP-CLI is the abbreviation for PHP command line interface, as its name implies, is the interface that PHP runs on the command lines, different from the PHP environment (PHP-CGI, ISAPI, etc.) that runs on the Web server,
PHP's several operating modes CLI, CGI, FastCGI, mod_php,fastcgimod_php
1, CLI: is the command line, for example, you can type the command in the console or the shell:
Php-f index.php
Then get the output
2, CGI: The following are different
Several php running modes are CLI, CGI, FastCGI, mod_php, and fastcgimod_php. Several php running modes: CLI, CGI, FastCGI, mod_php, fastcgimod_php1, and CLI: Are command lines. for example, you can type the command in the console or shell:
Php command line (cli) to execute the relative path of the PHP script file. Php command line (cli) to execute the relative path of the PHP script file. the working directory of the Execution Environment (getcwd () is the relative path of the php
Install the pear package in ubuntu (lynx and php-cli installation)
If you have installed lynx and php5-cli, you can easily install the pear package. If lynx and php5-cli are installed, run the # lynx-source http://pear.php.net/go-pear
What is the difference between CGI, FastCGI, Apache2handler, CLI? This article mainly introduces 4 kinds of common operation modes of PHP, and details the CGI, FastCGI, Apache2handler, CLI. We hope to help you.
Sapi:server application Programming
Ziadoz a list of PHP resources that are maintained on GitHub, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more. Bó Lè has
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.