Skip to content

Instantly share code, notes, and snippets.

@bmcculley
Created March 1, 2014 04:57
Show Gist options
  • Save bmcculley/9285435 to your computer and use it in GitHub Desktop.
Save bmcculley/9285435 to your computer and use it in GitHub Desktop.
Make sure the server PHP version is compatible with code.
<?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