Home  >  Article  >  Backend Development  >  采集中遇到的小疑点

采集中遇到的小疑点

WBOY
WBOYOriginal
2016-06-13 12:49:06715browse

采集中遇到的小问题
今天弄一下采集的小功能,遇到了个问题,被采集的站点无法fsockopen,也没办法file_get_contents。

报错:HTTP/1.0 503 Service UnavailableServer
请问要如何处理,对HTTP协议不太理解。

被采集站点URL:
http://www.milanoo.com/fr/producttags/A/1.html

想采集此页面中的单词。


------解决方案--------------------
稍候再试,这个网站服务器暂时出问题了
------解决方案--------------------
 可以  file_get_contents
------解决方案--------------------
为什么不可以呢?
$url = 'http://www.milanoo.com/fr/producttags/A/1.html';<br />
echo file_get_contents($url);

......
  • assassin′s creed


  • arme de sora


  • akatsuki deidara


  • appareil cheveux


  • age de glace


  • ....
    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn