I'm trying to use file_get_html on a web page to find images (and their URLs) on the page.
<?php
include('simplehtmldom_1_7/simple_html_dom.php');
 $html = file_get_html('https://www.mrporter.com/en-us/mens/givenchy/jaw-neoprene--suede--leather-and-mesh-sneakers/1093998');
foreach($html->find('img') as $e)
        $img_url_array[] = $e->src . '<br>';
      $array_size = sizeof($img_url_array);
       $x =0;
        while($x <$array_size){
       echo "image url is " . $img_url_array[$x] ;
       $x =$x+1;
   }
?>
The script keeps on loading and doesn't pause. Is there a way to set a timeout or an exception?
