PHP的终端仿真器 [英] PHP terminal emulator
问题描述
我要编在PHP和jQuery或AJAX一个终端仿真器。
I want to program a "Terminal" emulator in php and jquery or ajax.
我的意图是不执行真正的终端命令,我想做出这样的回声命令和检索我的结果,一个文本区,或作出命令,像新用户,并打开了我一个jQuery对话框或网页。有没有办法做到开发这种东西吗?
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?
我想要的东西是一个文本区域,在那里我得到的答复和文本输入字段,我把命令。需要做的功能是拨打电话到它所管理的文本字段的数据输入一个php文件,比较和做一些动作,像一个简单的回声或一个骰子滚动。我不想管理系统。感谢所有
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
推荐答案
有几个远程(AJAX)弹,它模拟一个外壳,并通过转发命令到真正的外壳在服务器上HTTP(S):
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):
- <一个href="http://antony.lesuisse.org/software/ajaxterm/">http://antony.lesuisse.org/software/ajaxterm/
- <一个href="http://www.squarefree.com/shell/shell.html">http://www.squarefree.com/shell/shell.html
- <一个href="http://en.wikipedia.org/wiki/Web-based_SSH">http://en.wikipedia.org/wiki/Web-based_SSH
- http://antony.lesuisse.org/software/ajaxterm/
- http://www.squarefree.com/shell/shell.html
- http://en.wikipedia.org/wiki/Web-based_SSH
这篇关于PHP的终端仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!