PHP函数 exec 获取更高权限

在服务器环境 apache + php下,PHP函数exec()执行whoami得到的结果是 apache,说明是以用户apache来执行命令。 $result = exec("whoami", $outcome, $status); var_dump($outcome); //array(1) { [0]=> string(6) "apache" } 查看apache的配置文件/etc/http
相关文章
相关标签/搜索