Archive for the 'programming' Category

php call to Linux System Command

1, exec function <?php   $test = “ls /tmp/test”;   exec($test,$array);    print_r($array);   ?> 2, system function call linux system command <?php   $test = “ls /tmp/test”;   $last = system($test);   print “last: $last\n”;   ?>