Just wondering, is it possible to create an interactive shell, using PHP alone. I mean something like you have with databases, python, etc.
If it is, how?
Since this question has been asked and answered, a better solution has been added to PHP. In all recent PHP versions you can easily get user input as so:
$input = fgets(STDIN);