A text box will be used to capture the command. I've been told that I have to use the exec()
function to execute UNIX shell commands.
Something like this, user types ls in the text box. The exec()
function will execute the UNIX command and the command will be displayed on the web page.
What I want to know how will I get the output of the shell command and display in the web browser using PHP.
I don't know where to start since I'm very new to PHP.
I'm using Ubuntu.