Is there a way to check in a php script if exec() is enabled or disabled on a server?
exec()
This will check if the function actually works (permissions, rights, etc):
if(@exec('echo EXEC') == 'EXEC'){ echo 'exec works'; }
2.1m questions
2.1m answers
60 comments
57.0k users