Created
May 12, 2018 22:35
Star
You must be signed in to star a gist
Script to check your mail poet extensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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