shell_exec
(PHP 4, PHP 5)
shell_exec — Esegue un comando attraverso la shell e restituisce l'output completo come stringa
Descrizione
string shell_exec
( string $cmd
)
Questa funzione è identica all'operatore backtick.
Example#1 Un shell_exec() esempio
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
Nota: Questa funzione è disabilitata nella modalità safe-mode
Vedere anche exec() e escapeshellcmd().