PHP command line
PHP command
jinxu@jinxu-ubuntu:~$ php-husage:php [Options] [f] <file> [--] [args ...] PHP [Options]-R <code> [--] [args ...] PHP [Options] [-b <begin_code>]-R <code> [-e <end_code>] [--] [args ...] PHP [Options] [-b <begin_code>]-F <file> [-e <end_code>] [--] [args ...] PHP [Options]-S <addr>:<port> [-t docroot] [router] php [options]--[args ...] PHP [Options]-a-a Run interactively-c <path>|<file> look for php.ini file in this directory -N No configuration (INI) files would be used-d Foo[=bar] Define INI entry foo with value ' bar '-E Generate extended information for debugger/profiler-f <file> Parse and execute <file>. -H This help-i PHP information-l Syntax Check Only (lint)-M Show compiled in Modules-r <code> Run PHP <code> without using script tags <?..? >-B <begin_code> run PHP <begin_code> before processing input lines-r <code> run PHP < Code> for every input line-f <file> Parse and execute <file> for every input line-e <end_code > Run PHP <end_code> after processing all input lines-h Hide any passed arguments from Externa L Tools. -S <addr>:<port> Run with built-in Web server. -T <docroot> specify document root <docroot> for built-in Web server. -S Output HTML syntax highlighted source. -V Version number-w Output Source with stripped comments and whitespace. -Z <file> Load Zend extension <file>. Args ... Arguments passed to script. Use--args when first argument starts With-or script was read from stdin--ini Show config uration file names--rf <name> Show information about function <name>. --RC <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>.
As a local server
Go to the directory where the project is located
shift+ Right-click to open the command line
Execute Php-s localhost:8000
Open localhost:8000 in Browser
Execute script
Performphp [options] [-f] <file> [--] [args...]
Interactive commands
Performphp -a
PHP command line
PHP command
jinxu@jinxu-ubuntu:~$ php-husage:php [Options] [f] <file> [--] [args ...] PHP [Options]-R <code> [--] [args ...] PHP [Options] [-b <begin_code>]-R <code> [-e <end_code>] [--] [args ...] PHP [Options] [-b <begin_code>]-F <file> [-e <end_code>] [--] [args ...] PHP [Options]-S <addr>:<port> [-t docroot] [router] php [options]--[args ...] PHP [Options]-a-a Run interactively-c <path>|<file> look for php.ini file in this directory -N No configuration (INI) files would be used-d Foo[=bar] Define INI entry foo with value ' bar '-E Generate extended information for debugger/profiler-f <file> Parse and execute <file>. -H This help-i PHP information-l Syntax Check Only (lint)-M Show compiled in Modules-r <code> Run PHP <code> without using script tags <?..? >-B <begin_code> run PHP <begin_code> before processing input lines-r <code> run PHP < Code> for every input line-f <file> Parse and execute <file> for every input line-e <end_code > Run PHP <end_code> after processing all input lines-h Hide any passed arguments from Externa L Tools. -S <addr>:<port> Run with built-in Web server. -T <docroot> specify document root <docroot> for built-in Web server. -S Output HTML syntax highlighted source. -V Version number-w Output Source with stripped comments and whitespace. -Z <file> Load Zend extension <file>. Args ... Arguments passed to script. Use--args when first argument starts With-or script was read from stdin--ini Show config uration file names--rf <name> Show information about function <name>. --RC <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>.
As a local server
Go to the directory where the project is located
shift+ Right-click to open the command line
Execute Php-s localhost:8000
Open localhost:8000 in Browser
Execute script
Performphp [options] [-f] <file> [--] [args...]
Interactive commands
Performphp -a
This article describes the PHP command line, more relevant content please follow the PHP Chinese web.
Related recommendations:
PHP Get client Information
PHP Time Processing
PHP Edit user Information