silverback
New Member
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()But i am getting similar data for the second traverse.like this script : \[code\]foreach($urls as $value){ $html=file_get_html($value); foreach($html->find('div[class=data] a') as $content) { $url2='http://abc.com/'.$content->href; $childHtml=file_get_html($url2); echo $childHtml; //Proble is here i am getting the previous data-->html }}\[/code\]Any idea what i am doing wrong here....?----------------------------------Here is the main crawling code----------------------------------\[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->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->href; array_push($urlHolderArray,$proxyURL); } }echo '<pre/>';print_r($urlHolderArray);echo '<pre/>';foreach ($urlHolderArray as $link){ $htmlCon=file_get_html($link); } echo $htmlCon;} ?>\[/code\]