PHP Common Command Daquan

Source: Internet
Author: User

1.php-v View version number

 [[email protected] lib]# php-v php 5.5.11 (CLI) (Built:apr 12:35:52)  copyright (c) 1997-201 4 the PHP group zend Engine v2.5.0, Copyright (c) 1998-2014 Zend technologies  2.php-h View Help   3.P HP-M viewing installed modules  [[email protected] lib]# php-m [php modules] core type  4.php-i View php information (view php.ini very convenient)  [[email protected] lib]# php-i | grep php.ini configuration file (php.ini) Path =/usr/local/lib loaded Configuration file =/usr/local /lib/php.ini  5.php--ini Display profile name  [[email protected] ~]# php--ini configuration file ( php.ini) Path:/usr/local/lib loaded Configuration File:/usr/local/lib/php.ini scan for additional. ini Files in: (none)  additional. ini files parsed: (none)   6.php-f execute PHP file  [[email protected] phptest]# php-f helloworld.php helloword   More tips for use see php-h [[email protected] ~]# php-h usage:php [Options] [-f] [--] [args ...]  php [Options]-R [--] [args ...]  php [Options] [-b]-R [-E] [--] [args ...]  php [Options] [-b]-F [-e] [--] [args ...]  php [Options]-S: [-t docroot] php [options]--[args ...]  php [Options]-a  -a Run interactively -c | Look for php.ini file in this directory -n No php.ini file'll be used -d Foo[=bar] Define ini entry foo with V Alue ' Bar '  -e Generate extended information for debugger/profiler -f Parse and execute.  -h this help  -I php information -l Syntax check Only (lint)  -m Show compiled in modules -r Run PHP without using script Tags -b run PHP before processing input lines -r run PHP for every input line -f Parse and execute for ever Y input line -e Run PHP after processing all input lines -h Hide any passed arguments from external tools.  -s:run with built-in Web server. -t specify document root for Built-in Web server. -s output HTML syntax highlighted source. -v Version number -w output source with stripped Comments and Whitespace. -z Load Zend extension.   args ... Arguments passed to script. Use--args when first argument starts with-or script was read from Stdin  --ini Show configuration file n AMES  --RF Show information about function.  --RC Show information about class.  --re Show Information About extension  --rz Show information on Zend extension.  --ri Show configuration for extension.  htt P://www.35ui.cn/post/20151226538.html

php common Command Daquan

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.