If you need to ensure a particular PHP extension is installed, simply make a .php file with the following information in it :
The above code , when viewed on your website , will display all of the php information that is necessary to ensure a particular module/extension is installed.
// Show all information, defaults to INFO_ALL
phpinfo();
?>