不可能得到Enitre网站使用file_get_html/file_get_contents PHP代码如何解决


not possible to get the enitre website using file_get_html/file_get_contents php code how to solve

我试过这段代码,但没有得到整个网站

  $html=file_get_html('');
  echo $html;

Js 和 Css 位置路径在本地服务器中正在更改。

这是因为file_get_contents不会"接受"javascript生成的代码。

我进入网站,在我的浏览器中禁用了javascript,你想要的部分没有出现。

你不能像这样访问这部分,你需要阅读所有的ajax请求来找到这些信息的存储位置。

(并根据这些请求执行file_get_contents)。