PHP command line

Source: Internet
Author: User

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

    1. Go to the directory where the project is located

    2. shift+ Right-click to open the command line

    3. Execute Php-s localhost:8000

    4. 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

    1. Go to the directory where the project is located

    2. shift+ Right-click to open the command line

    3. Execute Php-s localhost:8000

    4. 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

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.