2017-04-12 8 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

미리 감사드립니다.

답변

관련 문제