Created
October 5, 2012 00:14
-
-
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()
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 | |
// 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