Created
March 1, 2014 04:57
-
-
Save bmcculley/9285435 to your computer and use it in GitHub Desktop.
Make sure the server PHP version is compatible with code.
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 | |
if (version_compare(phpversion(), '5.3.10', '<')) { | |
// php version isn't high enough | |
echo 'version too low.'; | |
} | |
else { | |
echo 'good to go.'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment