开发者

How does Cpanel/whm execute linux commands

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜