php中执行linux的shell
<?php
$path="/data/httpd/htdocs/Code/tuku_wap_image";
$img_url="http://www.phpjx.com/images/1.jpg";
$a=system("wget $img_url -O $path/wap.jpg -q");
?>
<?php
1 <?php
2 $list="ls /var/www/html/slidepic";
3 $a=exec("ls $list",$out,$status);
4 echo "<pre>";
5 print_r($out);
6 echo "</pre>";
7 exec("convert -resize 358x282! /var/www/html/slidepic/20140508144904_phpYAZBCp.jpg /var/www/html/slidepic/1.jpg");
8
?>
phpshell