我正在使用简单的 html dom,我遇到了这个问题:
Warning: file_get_contents(http://forums.xxxxx.co.il/viewtopic.php?f=1015&t=14635609) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp\www\forums_walla\simple_html_dom.php on line 76
我认为问题是&
应该只在哪里&
?
有谁知道该怎么做?或者应该修复什么?
顺便说一句,代码是这样的:
$href1 = "http://forums.xxxx.co.il/".$topic_page_href; // where $topic_page_href contains the link to next page as --> viewtopic.php?f=1015&t=14635609 which was scrapped from a page)
$topic_page = file_get_html($href1);
如果我这样做
$href1 = "http://forums.xxxx.co.il/viewtopic.php?f=1015&t=14635609
$topic_page = file_get_html($href1);
一切都很好。
从昨天开始,我一直在尝试解决它,但没有。希望有人有解决方案。提前谢谢:)
请问有什么需要的。