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
在此先感谢!
谢谢您的回答,但它不工作。 – Asez