I 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
Advertisement
Answer
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):