Page 1 of 1

So überprüfen Sie, ob ein Shell -Befehl von PHP vorhanden ist

Posted: 30 Apr 2025, 20:17
by Anonymous
Ich brauche so etwas in PHP: < /p>

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');
}
< /code>

Gibt es Lösungen? < /p>