Steps to check PHP Modules in website

kumkumsharma

Administrator
Staff member
Most of the time we use phpinfo() to check all the PHP modules but if you want to check any particular module then you can follow below steps:

You can put a php file like test.php and check desired modules.

Code:
<?php
echo "DOM: ", extension_loaded('dom') ? 'OK' : 'MISSING', '<br>';
echo "GD: ", extension_loaded('gd') ? 'OK' : 'MISSING', '<br>';
echo "MBSTRING: ", extension_loaded('mbstring') ? 'OK' : 'MISSING', '<br>';
?>
Here we are checking dom,gd and mbstring support. Suppose there are all three modules are installed on server then you will get output like below:

Code:
DOM: OK
GD: OK
MBSTRING: OK
 
Top