Skip to content Skip to sidebar Skip to footer

Simple Html Dom Returning False

I've encountered something strange when using Simple HTML DOM to parse a webpage with a certain query string. Some query strings work when trying to parse this used car page of a d

Solution 1:

you should not use the default function file_get_html for getting remote content, that function use file_get_content to download page content. Sometime the target website will block your request by the user agent or referer. You could try PHP Curl to download page content first, then parse it with simple_html_dom


Post a Comment for "Simple Html Dom Returning False"