PHP PHP – Run Shell Command February 9, 2010 ykyuen Leave a comment You can make use of shell_exec() to run shell command in PHP. shell_exec.php <?php $output = shell_exec("whoami"); echo $output; ?> Open it in browser Done =) Share this:Tweet Share on WhatsApp (Opens in new window) WhatsApp Share on Telegram (Opens in new window) Telegram More Print (Opens in new window) Print Email a link to a friend (Opens in new window) Email Share on TumblrPocket Share on Reddit (Opens in new window) Reddit Like Loading... Related