Reputation: 1478
i am using Simple html dom where i get this problem:
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
I think the problem is &
where is should be only &
?
Does anyone know what to do? or what should be fixed?
btw code goes like this:
$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);
and if i do
$href1 = "http://forums.xxxx.co.il/viewtopic.php?f=1015&t=14635609
$topic_page = file_get_html($href1);
everything is just fine.
Please ask anything thats required.
Upvotes: 1
Views: 2752