How to check php installed modules

青灯夜游
Release: 2023-03-10 07:46:01
Original
4080 people have browsed it

php method to view installed modules: 1. In the PHP document, use the "phpinfo();" statement to view the installed modules; 2. Open the command line window, enter the PHP installation path, and then execute " php -m" command to view the installed modules of PHP.

How to check php installed modules

The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer

php Check installed Module method

1. Use phpinfo()

<?php
phpinfo();
?>
Copy after login

2. Use the "php -m" command

Open the command line window, enter the PHP installation path, and then execute the "php -m" command

$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
json
libxml
mbstring
memcached
msgpack
openssl
pcntl
pcre
PDO
pdo_pgsql
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Copy after login

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to check php installed modules. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!