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