I want code开发者_开发技巧 my own interface which can interact with linux shell commands.
i want to know (general idea) how does or in which language does cpanel/whm use to interact with shell
e,g if i click on show disk usage then how does cpanel display the usage
Does it execute shell command and then parse the result or what
Yes, use shell_exec in php and you're on your way to greatness! Be very careful for malicious users though (keep rm -rf /
in mind for all inputs).
精彩评论