Skip to content

Instantly share code, notes, and snippets.

@danreb
Created October 5, 2012 00:14
Show Gist options
  • Save danreb/3837270 to your computer and use it in GitHub Desktop.
Save danreb/3837270 to your computer and use it in GitHub Desktop.
PHP code snippet that to check if particular function is enabled or can be use, in this snippet, were checking shell_exec()
<?php
// Replace with any function
if (function_exists('shell_exec')) {
echo "The function shell_exec() is available.";
} else {
echo "The function shell_exec() not available.";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment