2017-04-12 17 views
0

ウェブサイトからデータを抽出したいが、警告が出ている。HTTPリクエストが失敗しました! HTTP/1.1 403 Forbidden

<?php 
     include("simple_html_dom.php"); 
     $html = file_get_html("https://ffs-gaming.com/clans.php?clanid=1264"); 
     $title = $html->find("div.number", 0)->innertext; 
     echo $title; 
    ?> 

他のウェブサイトでは、それは非常にうまく動作しますが、これではうまくいきません。 私はその警告を受けています。

Warning: file_get_contents(https://ffs-gaming.com/clans.php?clanid=1264): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in C:\xampp\htdocs\simple_html_dom.php on line 75

Fatal error: Call to a member function find() on boolean in C:\xampp\htdocs\index.php on line 12

ありがとうございます!

答えて

関連する問題