title: PHP Not finishing loop through URLS with SimpleHTMLDOM
body: <p>I am trying to use SimpleHTMLDom to rip data from the web and I'm having difficulty with performing requests to large numbers of pages.</p>
  
  <p>I tried this approach with smaller numbers of requests with great success, but for the project I'm undergoing, I need to make requests to the web many many times.  Several hundred, in fact.</p>
  
  <p>I have successfully made requests to the web 22 times and I am not finishing the loop.</p>
  
  <p>Could this be a limitation within PHP, or the site itself not allowing that many requests?</p>
  
  <p>Any help or thoughts on this matter would be greatly appreciated!</p>
  
  <pre><code>&lt;?php
  include "simplehtmldom_1_5/simple_html_dom.php";
  error_reporting(0);
  
  function scrape() {
     // Create HTML DOM (HTML structure and contents)
     $urls = array();
     $urls[] = "http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=35203";
     $urls[] = "http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=35813";
     ... // TWO HUNDRED MORE URLS
  
     // HTML Formatting
  
     foreach($urls as $url){
        $html = file_get_html($url);
  
        // PARSE DOM
  
        $html-&gt;clear();
        unset($html);
     }
  
     // MORE FORMATTING
  }
  
  // Set the user agent to the Mozilla Firefox
  
  $ret = scrape();
  ?&gt;
  </code></pre>