在php中使用 exec/ system/passthru/shell_exec 爬过的坑

问题描述:          在命令行中执行一个php/py文件,没有问题。php          当在php框架中用exec等函数调用外部命令时,发现怎么也得不到想要的内容,各类奇葩返回。web 解决过程:          经查看,执行php时用户为www-data,权限太低,没法操做。vim public function testtest(){ echo exec('whoam
相关文章
相关标签/搜索