Introduction
Instead of using phpinfo() which shows all sort of information including modules you may just want to check a particular module to see if it is loaded.
Procedure
In the sites document root put the following with the deisred modules info a php file like phptest.php
<?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>';
?>
In this example, we are checking dom, gd, and mbsting support. If all three modules are loaded you will see output like the following:
DOM: OK
GD: OK
MBSTRING: OK
Comments
0 comments
Article is closed for comments.