Hey guys i've recently been getting into php programming and i became thinking was it possible to create a php script that would allow you to run a terminal from the browser page?
However it is extremely limited in its applications as it can only run one command at time, doesn't report shell errors back to $output. Lacks changing directory function.
I've been looking around but so far i haven't been able to find anything beyond doing simple 1 line commands
Is it even possible to create a more robust terminal session in php???
Note: I'm not to worried about security as it will just be ran on my Home LAN in which the server shouldn't be accessed externally.
Hey thanks for the replies guys, i've worked on it some more and have figured out a way around the 'change directory' problem by recording the working directory it currently is in and changing the directory at the start of each script so its in the correct one
However currently there are two problems (so far i can work out).
The php script doesn't get the errors when the command isn't put in correctly
The whole idea of this script was to get around the need for SSH. As i am currently hosted with JustHost, and if i can get this working fully i shan't have to pay extra for SSH access . I will of course implement security if i put it online (thats no problem for me) i am just unfamiliar with shell_exec and haven't been able to find more extensive documentation on it.