帮忙看下源码那出错了

@Ta 2013-04-06 1989点击
<?php =opendir("images/");=array(); while(=readdir(){ if(!="." or !=".."){ []=;} }=count(-1;=rand(0,; ="images/".array[];=file_get_contents(;file_put_contents("picture/image.jpg",;  ?>


页面提示
Parse error: syntax error, unexpected '[', expecting '(' in /home/u865864124/public_html/pictures/picture.php on line 1

怎么回事?求解
回复列表(5|隐藏机器人聊天)
  • @Ta / 2013-04-06 / /
    不知道
  • @Ta / 2013-04-06 / /
    乱……
  • @Ta / 2013-04-06 / /
    你这个差的有点多哦,要复制也要复制完嘛
  • @Ta / 2013-04-06 / /
    <?php $dir=opendir("a/"); $array=array(); while($h=readdir($dir)){ if($h!="." or $h!=".."){ $array[]=$h;} } $n=count($array)-1; $r=rand(0,$n); $tu="a/".$array[$r]; $tu=file_get_contents($tu); file_put_contents("b/img.jpg",$tu);  ?>  第十行array前面少了个$,一时粗心打掉了,抱歉哈@小钕子
  • @Ta / 2013-04-07 / /
    用的是冒泡浏览器?
添加新回复
回复需要登录