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. 安装CocoaPods流程及常见问题(Xcode->homebrew->RVM->Ruby->CocoaPods)

    一.HomeBrew 1.(转)HomeBrew的安装和简单使用 http://blog.csdn.net/maojudong/article/details/7918291 2.homebrew的简 ...

  2. java学习初体验之课后习题

    import java.util.Scanner; public class HelloWorld { public static void main(String[] args) { //打印Hel ...

  3. hdu1024

    #include <cstdio>#include <iostream>const int MAX = 1000005; using namespace std; int nu ...

  4. 第六十五,html嵌入元素

    html嵌入元素 学习要点:     1.嵌入元素总汇     2.嵌入元素解析     本章主要探讨HTML5中嵌入元素,嵌入元素主要功能是把外部的一些资源插入到HTML中.   一.嵌入元素总汇 ...

  5. 《html表格》

    1.html表格 w3c School:http://www.jb51.net/w3school/html/html_tables.htm 2.<colgroup></colgrou ...

  6. PAT 团体程序设计天梯赛-练习集L1-011. A-B

    本题要求你计算A-B.不过麻烦的是,A和B都是字符串 —— 即从字符串A中把字符串B所包含的字符全删掉,剩下的字符组成的就是字符串A-B. 输入格式: 输入在2行中先后给出字符串A和B.两字符串的长度 ...

  7. 【LeetCode】419. Battleships in a Board

    Given an 2D board, count how many different battleships are in it. The battleships are represented w ...

  8. 浙大pat 1059 题解

    1059. Prime Factors (25) 时间限制 50 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 HE, Qinming Given ...

  9. 索引图像(X与map)的显示、保存、转化

    有的图像载入后,出现X.map两个矩阵,那么他就是索引图像. load wbarb; figure,imshow(X,map);%显示原图 imwrite(X,map,'C:\Users\Jv\Des ...

  10. org.apache.commons.lang3.StringUtils类中isBlank和isEmpty方法的区别

    相信很多java程序员在写代码的时候遇到判断某字符串是否为空的时候会用到StringUtils类中isBlank和isEmpty方法,这两个方法到底有什么区别呢?我们用一段代码来阐述这个区别吧: @T ...