1.php -v 查看版本号

 
[root@rs-2 lib]# php -v
 
PHP 5.5.11 (cli) (built: Apr 29 2014 12:35:52)
 
Copyright (c) 1997-2014 The PHP Group
 
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
 
 
2.php -h 查看帮助
 
 
3.php -m 查看安装的模块
 
[root@rs-2 lib]# php -m
 
[PHP Modules]
 
Core
 
type
 
 
4.php -i 查看php信息(查看php.ini非常方便)
 
[root@rs-2 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 显示配置文件名字
 
[root@rs-2 ~]# 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 执行php文件
 
[root@rs-2 phpTest]# php -f helloworld.php
 
helloword
 
 
更多使用技巧请看php -h
 
[root@rs-2 ~]# 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 will be used
 
-d foo[=bar] Define INI entry foo with value '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 every 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 is read from stdin
 
 
--ini Show configuration file names
 
 
--rf Show information about function .
 
--rc Show information about class .
 
--re Show information about extension .
 
--rz Show information about Zend extension .
 
--ri Show configuration for extension .
 
http://www.35ui.cn/post/20151226538.html

php常用命令大全的更多相关文章

  1. db2常用命令大全

    #显示这个DB2错误的解释信息(SQLSTATE 5位数字)db2 ? 42704 #显示这个SQLCODE的解释信息(SQLCODE 四位数字) db2 ? SQL0204N ##查看数据库指定配置 ...

  2. linux 常用命令大全

    linux 常用命令大全 系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统 ...

  3. Ubuntu常用命令大全(转)

    点评:Ubuntu常用命令大全,学习ubuntn系统的朋友可以收藏下,用ctrl+F查找即可 一.文件/文件夹管理 ls 列出当前目录文件(不包括隐含文件) ls -a 列出当前目录文件(包括隐含文件 ...

  4. 100个命令Linux常用命令大全

    Linux常用命令大全100条: 1,echo "aa" > test.txt 和 echo "bb" >> test.txt//>将原 ...

  5. Linux常用命令大全(非常全!!!)

    Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错.我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因,比较短 ...

  6. Linux常用命令大全(转)

    (转)Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错.我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因, ...

  7. 18-10-09 Linux常用命令大全(非常全!!!)

     Linux常用命令大全(非常全!!!)   Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错.我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制, ...

  8. Ubuntu常用命令大全[显示桌面]

    Ubuntu常用命令大全 查看软件xxx安装内容 #dpkg -L xxx 查找软件 #apt-cache search 正则表达式 查找文件属于哪个包 #dpkg -S filename apt-f ...

  9. [转] Linux常用命令大全(非常全!!!)

    出处:https://www.cnblogs.com/yjd_hycf_space/p/7730690.html Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错.我觉得 ...

  10. Ubuntu 常用命令大全

    Ubuntu 常用命令大全查看软件 xxx 安装内容#dpkg -L xxx查找软件#apt-cache search 正则表达式查找文件属于哪个包#dpkg -S filename apt-file ...

随机推荐

  1. pdf 电子书分享

    http://yunpan.cn/cLgXntGmIas7A 访问密码 7d04 来自为知笔记(Wiz)

  2. oracle索引

    1,建立索引 create index goods_num on goods (num) tablespace data; 2,查看表上索引 select * from USER_INDEXES wh ...

  3. Generating Faces with Deconvolution Networks

    用深度学习做人脸合成,website:https://zo7.github.io/blog/2016/09/25/generating-faces.html 受启发于 Learning to Gene ...

  4. http验证CertificateValidation

    private void btnopenURL_Click(object sender, EventArgs e) { string strUrl = txtopenURL.Text.Trim(); ...

  5. Maven搭建springMVC+spring+hibernate环境

    这次不再使用struts2做控制器,采用spring自己的springMVC框架实现. 首先,改写pom.xml文件,不需要struts2的相关jar了. pom.xml <project xm ...

  6. js--javascript中字符串常用操作总结、JS字符串操作大全

    字符串的操作在js中非常频繁,也非常重要.以往看完书之后都能记得非常清楚,但稍微隔一段时间不用,便会忘得差不多,记性不好是硬伤啊...今天就对字符串的一些常用操作做个整理,一者加深印象,二者方便今后温 ...

  7. CF 602C The Two Routes(dij+邻接矩阵)

    ( ̄▽ ̄)" #include<iostream> #include<cstdio> #include<cmath> #include<algori ...

  8. LeetCode OJ 42. Trapping Rain Water

    Given n non-negative integers representing an elevation map where the width of each bar is 1, comput ...

  9. 关于jquery选择器中:first和:first-child和:first-of-type的区别及:nth-child()和:nth-of-type()的区别

    :first:选择第一个出现符合的元素 :first-child:选择限制条件中的第一个元素,并且必须和冒号前面的标签一致 :first-of-type:选择所有限制条件下的第一个冒号前面的标签元素, ...

  10. 微信账号 echo_server 的实现

    <?php/** 微信账号 echo_server 的实现*//** 定义 echo_server 的 TOKEN 为 echo_server*/define("TOKEN" ...