关于这个mkdir()的错误我没想明白
$img = array<br /> (<br /> "./web/su.bdimg.com/static/superpage/css/../img/spis_9762e054.png",<br /> "./web/su.bdimg.com/static/superpage/css/../img/baidu_fm_gif_72f357cc.gif",<br /> "./web/su.bdimg.com/static/superpage/css/../img/guide_sprite_df6dde4a.png",<br /> "./web/su.bdimg.com/static/superpage/css/../img/cite_sprite_121e6560.png",<br /> "./web/su.bdimg.com/static/superpage/css/../img/hotnews_ac6c5b7e.png",<br /> "./web/su.bdimg.com/static/superpage/css/../img/hotnews_ie_ca7d3ffd.png"<br /> );<br /> <br /> foreach($img as $v){<br /> $a=dirname($v);<br /> echo $a,'<br/>';<br /> if(!file_exists($a) && mkdir($a,0777,true)){<br /> echo $a.'<font color="green">路径创建成功</font><br/>';<br /> }<br /> }