Created
February 10, 2016 03:44
-
-
Save brobie/c9760e74b0cd872ee190 to your computer and use it in GitHub Desktop.
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
if (version_compare(phpversion(), '5.5.0', '<') === true) { | |
if (PHP_SAPI == 'cli') { | |
echo 'Magento supports PHP 5.5.0 or later. ' . | |
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html'; | |
} else { | |
echo <<<HTML | |
<div style="font:12px/1.35em arial, helvetica, sans-serif;"> | |
<p>Magento supports PHP 5.5.0 or later. Please read | |
<a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html"> | |
Magento System Requirements</a>. | |
</div> | |
HTML; | |
} | |
exit(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment