您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP命令行

2025/5/10 20:17:13发布25次查看
php命令行php命令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 will 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 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 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>.
作为本地服务器进入到项目所在目录
shift+右键打开命令行
执行 php -s localhost:8000
浏览器中打开 localhost:8000
执行脚本执行 php [options] [-f] <file> [--] [args...]
交互式命令执行 php -a
php命令行php命令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 will 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 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 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>.
作为本地服务器进入到项目所在目录
shift+右键打开命令行
执行 php -s localhost:8000
浏览器中打开 localhost:8000
执行脚本执行 php [options] [-f] 28897b20adb25fbae118a3f80f538dec [--] [args...]
交互式命令执行 php -a
本文介绍了php命令行 ,更多相关内容请关注。
相关推荐:
php获取客户端信息
php 时间处理
php编辑用户信息
以上就是php命令行的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product