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

問題描述:          在命令行中執行一個php/py文件,沒有問題。php          當在php框架中用exec等函數調用外部命令時,發現怎麼也得不到想要的內容,各類奇葩返回。web 解決過程:          經查看,執行php時用戶爲www-data,權限太低,沒法操做。vim public function testtest(){ echo exec('whoam
相關文章
相關標籤/搜索