PHP 指令集[Ubuntu]
查看指令集
PHP --help
常用指令集
# 查看 PHP 版本 PHP -v # 查看已开启扩展 PHP -m # 查看扩展版本 PHP --ri package# 查看 PHP 配置文件存放路径 PHP --ini
以下是 PHP8.0 指令集
PHP --hlep
Error in argument 1, char 1: no argument for option -Usage: 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 will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended @R_202_4045@ion for debugger/profiler -f <file> Parse and execute <file>. -h This help -i PHP @R_202_4045@ion -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 external 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 is read from stdin --ini Show configuration file names --rf <name> Show @R_202_4045@ion about function <name>. --rc <name> Show @R_202_4045@ion about class <name>. --re <name> Show @R_202_4045@ion about extension <name>. --rz <name> Show @R_202_4045@ion about Zend extension <name>. --ri <name> Show configuration for extension <name>.
编程之家近期上线了一批新的公益课程,需要的朋友可以点击《PHP教程》进行查看学习~
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。