What to do with the PHP emulation Linux command line

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.