2
我可以获取网站内容,但我需要模拟点击细节图标打开“细节”窗口。我试图在网址中添加#detail=63710
,但它不起作用。如果我在谷歌浏览器中加载了#detail=xxxxx
的网址,它会显示打开“详细信息”窗口的网站。我怎样才能解决这个问题?PHP在网址中获取带有锚点的网站内容
这是我的代码:
<?php
$url='http://www.forexfactory.com/calendar.php?day=nov21.2016#detail=63710';
$lines_string=file_get_contents($url);
echo $lines_string;
?>
结果是:
却原来是:
这是您的网站吗? (PHP文件是“forexfactory.com”?) – k97513