Comment vérifier si une commande shell existe depuis PHP

J'ai besoin de quelque chose comme ça en php:

If (!command_exists('makemiracle')) {
  print 'no miracles';
  return FALSE;
}
else {
  //safely call the command knowing that it exists in the host system
  shell_exec('makemiracle');
}

Existe-il des solutions?

InformationsquelleAutor mimrock | 2012-09-14