file_get_html multiple times in the same script
<p>I am using simple html dom parser. When I am requesting a page like <code>file_get_html()</code> I am getting 2 values. One is title and the other one is an url. Within this I want to do <code>file_get_html()</code> again.</p>

<p>But I am getting similar data for the second traverse.</p>

<p>Like this script : </p>

<pre><code>foreach($urls as $value) {
  $html=file_get_html($value);

  foreach($html-&gt;find('div[class=data] a') as $content) {
       $url2='http://abc.com/'.$content-&gt;href;
       $childHtml=file_get_html($url2);

       echo $childHtml; //Proble is here i am getting the previous data--&gt;html
  }
}
</code></pre>

<p>What am I doing wrong here?</p>

<h1>This is the main crawling code</h1>

<pre><code>$urls=GenerateURLS($currentmonth);     
$tracker=0;
$urlHolderArray=array();

foreach ($urls as $value) {
  $html=file_get_html($value);  //Here I am requesting the html dom

  foreach ($html-&gt;find('div[id=centrepanel] div[class=events_listing_container]  div[class=events_info_container] div[class=events_image] a') as $content) {
    $proxyURL="http://www.junkclub.com/".$content-&gt;href;
    array_push($urlHolderArray,$proxyURL);          
  }
}

echo '&lt;pre/&gt;';
print_r($urlHolderArray);
echo '&lt;pre/&gt;';

foreach ($urlHolderArray as $link) {
  $htmlCon=file_get_html($link);
}

echo $htmlCon;
</code></pre>
