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.
The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
php Check installed Module method
1. Use phpinfo()
<?php phpinfo(); ?>
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
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!