1、exec函数
View Code PHP1
2
3
4
5
< ?php
$test = "ls /tmp/test"; //ls是linux下的查目录,文件的命令
exec($test,$array); //执行命令
print_r($array);
?>
2、system函数
View Code PHP1
2
3
4
5
< ?php
$test = "ls /tmp/test";
$last = system($test);
print "last: $last\n";
?>
3、passthru函数
View Code PHP1
2
3
4
< ?php
$te...
Apache, linux, PHP, Web, 技巧阅读全文