今天弄一下采集的小功能,遇到了个问题,被采集的站点无法fsockopen,也没办法file_get_contents。报错:HTTP/1.0 503 Service UnavailableServer
请问要如何处理,对HTTP协议不太理解。被采集站点URL:
http://www.milanoo.com/fr/producttags/A/1.html想采集此页面中的单词。

解决方案 »

  1.   

     可以  file_get_contents
      

  2.   

    为什么不可以呢?$url = 'http://www.milanoo.com/fr/producttags/A/1.html';
    echo file_get_contents($url);
    ......
    <li><a href='http://www.milanoo.com/fr/producttags/A-assassin´s-creed'>assassin´s creed</a></li>

    <li><a href='http://www.milanoo.com/fr/producttags/A-arme-de-sora'>arme de sora</a></li>

    <li><a href='http://www.milanoo.com/fr/producttags/A-akatsuki-deidara'>akatsuki deidara</a></li>

    <li><a href='http://www.milanoo.com/fr/producttags/A-appareil-cheveux'>appareil cheveux</a></li>

    <li><a href='http://www.milanoo.com/fr/producttags/A-age-de-glace'>age de glace</a></li>

    ....
      

  3.   

    报错:HTTP/1.0 503 Service UnavailableServer
    请问要如何处理,对HTTP协议不太理解。503是一种http状态码,是服务器出错的一种状态码,so..是服务器出错啦!
      

  4.   

    http://my.csdn.net/my/code/detail/46652