what i am trying to do is to load a html file via file_get_contents() and echo only a selected area say <div id="something"></div> is it any way possible?
Yes, you need to find where this selected area begins and ends using the strpos() function. then you can extract it using substr() and the 2 positions you retrieved in the last part. There are also other ways like using regex or XML/HTML/DOM related functions.
first of all thanks for your quick reply i already thought of the idea similar like that but didn't know about the the strpos() function so i was doing something like <?php $blogpost = file_get_contents("http://any_page.html"); $area_start= 123545; $area_stop= 4526356; for($i=$area_start;$i<=$area_stop;$i++) { echo $blogpost[$i]; } ?> i'll try to resolve it now and then rply back if i need more help thanks again.