+
96
-

php system函数如何返回执行结果?

php
php system函数如何返回执行结果?最近试了很多次,就是返回不了结果,大神帮看看

网友回复

+
16
-

在命令行参数后加上 2>&1

$ret=system("ls 2>&1");

我知道答案,我要回答