I use SIMPLE HTML DOM. Some pages take a long time -> then Warning (HTTP request failed) -> find() doesn`t work! FATAL ERROR! How to go to the next page?
$items = [...];
foreach ($item as $link) {
$html = new simple_html_dom();
$html -> load_file($link);
if (WHAT SHOULD I WRITE HERE TO START PARSING WHEN $html is OK?) {
some parsing
}
}