Php simulated linux command line just interviewed a company and they planned to ask me to use php to simulate the linux command line. but I have never touched on linux and have no idea yet, you have to come up with an idea .. maybe they're going to get this stuff to FreeBSD, and unix will be less familiar with php simulating linux command lines.
I have just interviewed a company and they want to ask me to do something that uses php to simulate linux command lines. but I have never been in touch with linux, and I have no idea at the moment. I have nothing to worry about, come up with an idea .. maybe they're going to get this stuff to FreeBSD, and unix is even less familiar.
------ Solution --------------------
Simulate command line? Is there any details? What does the command line look like? Call shell?
------ Solution --------------------
Direct:
Exec ("ps-awx ");
System ("ps-awx ");
Same execution
------ Solution --------------------
Discussion
It is equivalent to the same effect as the linux Terminal. you can run the command, but you can open a php page instead of a window.
------ Solution --------------------
Simple Demo:
PHP code
Script function goExec () {document. exRow. submit ();} script
------ Solution --------------------
Research on ssh protocol
------ Solution --------------------
It mainly involves permission management. php only has the user Master of the web server. what permissions do you plan to give it.