Skip to content

Instantly share code, notes, and snippets.

@brobie
Created February 10, 2016 03:44
Show Gist options
  • Save brobie/c9760e74b0cd872ee190 to your computer and use it in GitHub Desktop.
Save brobie/c9760e74b0cd872ee190 to your computer and use it in GitHub Desktop.
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