如何使用PHP获取网站的整个HTML源代码


how to get the entire html source code of a website using PHP?

我使用了file_get_content(),只得到了网站的内容,但我想要网页的整个html代码。那么如何通过仅输入网页的 url 并回显它来获取网页的整个 html 源代码呢?

如果我理解正确,您可以使用互联网下载管理器(IDM)等应用程序