?php
$ab12=exec("/opt/bin/busybox ps|grep vsftpd",$output,$res);
print "账号 1:".$output;
print "账号 2:".($res);
print "账号 3:".($ab12);
?
账号 1:Array
账号 2:127
账号 3:
在 putty 上执行 /opt/bin/busybox ps|grep vsftpd 的结果是 4
环境是 android 4.4.2 linux 内核 3.1.4,php7,nginx/1.12.2
如何返回正确结果呢。
$ab12=exec("/opt/bin/busybox ps|grep vsftpd",$output,$res);
print "账号 1:".$output;
print "账号 2:".($res);
print "账号 3:".($ab12);
?
账号 1:Array
账号 2:127
账号 3:
在 putty 上执行 /opt/bin/busybox ps|grep vsftpd 的结果是 4
环境是 android 4.4.2 linux 内核 3.1.4,php7,nginx/1.12.2
如何返回正确结果呢。