PHP command line parameters detailed

zhaozj2021-02-12  146

PHP is a service-based scripting language that creates a dynamic website, you can generate a website home page with PHP and HTML. When the user opens the PHP page, the service performs the PHP command and sends the execution result to the user's browser, which is similar to the ASP and CoildFusion, and PHP can run on a variety of platforms. PHP is a functionally powerful language that can be run as Liunx, UNIX's shell program. It can operate as a stand-alone CGI mode.

A PHP executable is required when running in a stand-alone CGI mode. Here is all PHP command line parameters, where [] indicates that there is no, <> table is sure.

Usage php [-q] [-h] [-S] [-V] [-i] [-f] | {[args ...]}

-q quiet mode. Do not output an HTTP header. Use a php -q file name .PHP mode to use the PHP program as a shell program,

-s uses the PHP program file to convert HTML (such as reserved words with green, function, and variables, comment) yellow, and the string is red, and so on.

-f read and explain the specified file.

-c reads the php.ini file in the middle

-A interactive operation

-d foo [= bar] Defines the value of the input FOO in INI BAR

-e output extra information to debug and performance analysis

-z Turn into Zend Extension File

-i PHP information

-h Help itself.

转载请注明原文地址:https://www.9cbs.com/read-6714.html

New Post(0)