Coding: linux shell exec using php

in #coding2 years ago (edited)

The server is runing with the system called: Debian.

I have made a page of website, it can be exec a shell command which like a terminal app.

demo_sx_terminal.PNG

The image has showen the result after I exec, but now there are some problems:
About the command which required admin for example if I run a upgrade command? etc and should I save the output result to the database?

Sort:  

Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
image.png
please click it!
image.png
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)

The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.

Coin Marketplace

STEEM 0.17
TRX 0.24
JST 0.034
BTC 96170.07
ETH 2806.40
SBD 0.67