Home  >  Article  >  Backend Development  >  How to check if the extension is installed in php

How to check if the extension is installed in php

藏色散人
藏色散人Original
2021-07-16 09:43:274423browse

php method to check whether an extension is installed: first enter the command line; then execute the command "php -m" to check whether an extension is installed. If it is installed, the matching results will be listed.

How to check if the extension is installed in php

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

How to check if the extension is installed with php?

The fastest way to check whether an extension is installed is through the command line

php -m

How to check if the extension is installed in php

Check whether the ampq extension is installed. If it is installed, matching results will be listed

php -m | grep 'amqp'

How to check if the extension is installed in php

Recommended learning: "PHP Video Tutorial"

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

Statement:
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