I need something like this in php:
If (!command_exists(\'makemiracle\')) { print \'no miracles\'; return FALSE; } else { // safely call the command kno
You could use is_executable to check whether it is executable, but you need to know the path of the command, which you could use which command to get it.
which