Skip to content

Instantly share code, notes, and snippets.

@bhowe
Created May 12, 2018 22:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bhowe/0b3106ba54a9a5e6baa55561e51c258b to your computer and use it in GitHub Desktop.
Script to check your mail poet extensions
<?php
#requirements for mail poet. The top three are the most common.
#https://beta.docs.mailpoet.com/article/152-minimum-requirements-for-mailpoet-3#php_extension
#https://stackoverflow.com/questions/3131411/php-code-to-test-pdo-is-available
echo 'mail poet extension check' . "<br><br>";
echo "GD: ", extension_loaded('gd') ? 'OK' : 'MISSING', '<br>';
echo "XML: ", extension_loaded('xml') ? 'OK' : 'MISSING', '<br>';
echo "zip: ", extension_loaded('zip') ? 'OK' : 'MISSING', '<br><br>';
#loaded php modules
echo 'All loaded PHP modules' . "<br><br>";
$ext = get_loaded_extensions();
asort($ext);
foreach ($ext as $ref) {
echo $ref . "<br>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment