奥礼网
新记
如何获取php函数exec执行命令后的输出结果
如题所述
举报该文章
其他看法
第1个回答 2017-09-01
exec
(PHP 4, PHP 5, PHP 7)
exec — 执行一个外部程序
说明
string exec ( string $command [, array &$output [, int &$return_var ]] )
exec() 执行 command 参数所指定的命令。
第二个参数就是,把输出赋值给某个数组本回答被提问者采纳
相似回答
大家正在搜