# which php

  • 获取php安装目录

 

# /usr/bin/php -m

  • 获取当前PHP版本已安装的模块:

[PHP Modules]

calendar

Core

ctype

curl

date

dom

exif

fileinfo

filter

ftp

gd

gettext

hash

iconv

imap

json

ldap

libxml

mbstring

mcrypt

mysqli

mysqlnd

openssl

pcntl

pcre

PDO

pdo_mysql

Phar

posix

readline

Reflection

session

shmop

SimpleXML

soap

sockets

SPL

standard

sysvmsg

sysvsem

sysvshm

tidy

tokenizer

wddx

xml

xmlreader

xmlrpc

xmlwriter

xsl

Zend OPcache

zip

zlib

[Zend Modules]

Zend OPcache

Recent Posts