用file("url"),返回数组,用print_r察看一下,然后处理

解决方案 »

  1.   

    fread少了参数丫.
    $content=fread($fp,9999999999);
    试试.
      

  2.   

    readfile("http://www6.163.com/index.htm");
      

  3.   

    想输出就用readfile,不然readfile只是返回长度而已
      

  4.   

    to :  LeeMaRS(小菜虎_水壶的仇人) 
    我用了 fread($fp, 10240); 但还是不管用啊to :  wasy(嘻嘻哈哈) 
    我想把它的内容读到变量中进行处理,并不是要输出
      

  5.   

    http://www.csdn.net/Develop/read_article.asp?id=13836
      

  6.   

    $content=implode('\n',file($url));
      

  7.   

    <?php
       $URL="http://www6.163.com/index.html";
       $content=implode("",file($URL));
       echo $content;
       exit;
    ?>偶的方法已经失效了,原来是可以用的. ...>_<...