PHP emulation linux command line
Just interviewed the company, they are going to let me do a PHP to emulate the Linux command line of things, but I did not touch the Linux, but also temporarily no ideas, trouble is all right, to help out the advice. Maybe they're going to take this thing to FreeBSD, and Unix is less familiar.
------Solution--------------------
Analog command line? Do you have any details? What does the analog command line look like? Call the shell?
------Solution--------------------
Direct:
EXEC ("ps-awx");
System ("PS-AWX");
Can execute as well.
------Solution--------------------
Explore
Equivalent to the Linux terminal effect, can be knocked command, can be executed, but open not a window but the PHP page
------Solution--------------------
A simple demo:
PHP Code
------Solution--------------------
Research SSH Protocol
------Solution--------------------
The main is the Rights Management, PHP only Web server user master, you intend to let it have what permissions it.