PHP terminal emulator [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this questionI want to program a "Terminal" emulator in php and jquery or ajax.
My intention it's not to execute real terminal commands, I want to make commands like echo and retrieve me the results to an TextArea, or make commands like newuser and open me a jquery dialog or a webpage. Is there any way to do develop this thing?
The thing i want is a text area where i get the responses and a text input field where i put the commands. The function that needs to do is make a call to a php file where it manages the data input on the text field, compare and do some actions, like a simple echo or a dice rolling. I don't want to manage the system. Thanks to all
There are several remote (ajax) shells, which emulate a shell and forward the commands to to the real shell on the server via HTTP(S):
- http://antony.lesuisse.org/software/ajaxterm/
- http://www.squarefree.com/shell/shell.html
- http://en.wikipedia.org/wiki/Web-based_SSH
You can check my jquery terminal emulator plugin it's the best solution if you want to implement custom commands that are implemented by you in PHP. You can also make a real Linux shell with it. But it was created to allow to create of the commands mostly in JavaScript. You can create almost anything you want.
But if you want to have real SSH you probably will not be able to use PHP and you will want xterm.js, but it requires running a server where you keep connection with the server. with jQuery Terminal you can just use PHP.
Check out the lithium php framework homepage: http://li3.me/
In the top left type help, and see what happens!
Check out the source for informations.
Not exactly what you were asking for, but there is a web terminal written in python+JS you may be interested in: http://antony.lesuisse.org/software/ajaxterm/
精彩评论