file_get_html multiple times in the same script
<p>I am using simple html dom parser.When i am requesting page like : file_get_html() it giving me 2 data.One is title and another one is an url.In this i need to again do file_get_html()</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>Any idea what i am doing wrong here....?</p>

<h1>----------------------------------</h1>

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

<h1>----------------------------------</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;

}





    ?&gt;
</code></pre>
