Senza shell_exec(), exec() o system() la vedo dura, io un esempio te l'ho sviluppato ma non credo che ti funzionerà:
Codice:
<h2>Test linea di comando</h2>
<form method="post" action="">
<label for="cmdline">command line: </label>
<input type="text" name="cmdline" id="cmdline" />
<input type="submit" name="send" hidden="hidden" value="return" />
</form>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$cmd = $_POST['cmdline'];
echo '<pre>' . shell_exec($cmd) . '</pre>';
} else {
echo '<p>dai il comando</p>';
}
?>