<?php $shell = 'ls'; system($shell); 实例2 <?php $shell = 'ls'; system($shell, $s); echo $s //返回执行状态, 成功则返回 0, 不成功则返回127
<?php $shell = "awk -F '{print $1,$3,$4,$6,$7}' /etc/passwd"; exec($shell, $arr); print_r($arr);