ressio / pharse

Fastest PHP HTML Parser
83 stars 15 forks source link

Message: file_get_contents(someURL): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am getting this error when i am accessing one of the URL's. If i try to go to 
this URL, the website says "This page is temporarily unavailable".
How to handle errors returned from file_get_dom($url)?

I tried enclosing file_get_dom($url) but it doesn't work. Everything works fine 
with this parser except when in comes across some url link which is bad, it 
returns the error.

I am using the PHP5 version of ganon.

Original issue reported on code.google.com by urfi.ans...@gmail.com on 12 Jun 2014 at 4:36

dryabov commented 9 years ago

Load content separately and call str_get_dom to parse.