web:codding:php:executer_cmdshell
Comment demander à PHP d'exécuter une commande
Voici le code à ajouter dans vôtre page php pour lui demander d'exécuter une commande shell.
echo '<span style="color: dodgerblue"><strong><font face="verdana">(✔︎) Etat du Volume Disk ™ </font></strong></span>'; echo shell_exec('du -sh /');
exemple retourné dans la page Web:
web/codding/php/executer_cmdshell.txt · Dernière modification : de 127.0.0.1
