Adrian M. Adrian M. - 1 year ago 97
Linux Question

PHP exec - check if enabled or disabled

Is there a way to check in a php script if

exec()
is enabled or disabled on a server?

Answer Source
if(function_exists('exec')) {
    echo "exec is enabled";
}