title: prevent some parts of html from showing in code retrieved from remote page using curl
body: <p>I am retreiving source code from remote page using curl then echo it in my page using <code>echo $html</code> but this echo the whole remote page . what i am tring to do is to prebvent some parts </p>
  
  <p>from being echod in my page (the ads that are in the remote pageand some other parts) the remote page code is almost like that </p>
  
  <pre><code>&lt;IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=728 HEIGHT=90 SRC="http://creative.xtendmedia.com/proxy/matomymediaproxy.html?ad_type=ad&amp;ad_size=728x90&amp;section=2650714"&gt;&lt;/IFRAME&gt;
  
  &lt;script type="text/javascript" src="http://www.youradexchange.com/script/java.php?option=rotateur&amp;rotateur=83132"&gt;&lt;/script&gt;
  
  &lt;script language="JavaScript"&gt; var zflag_nid="1723"; var zflag_cid="18"; var zflag_sid="0"; var zflag_width="1"; var zflag_height="1"; var zflag_sz="15"; &lt;/script&gt;
  
  &lt;script language="JavaScript" src="http://c1.zxxds.net/jsc/c1/fo.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>i currently use <code>preg_match_all('#(&lt;iframe.*myspecificword.*/iframe&gt;)#i', $html, $matches);
  var_dump($matches);</code></p>
  
  <p>but its not effective as the the specfic word differs every time .</p>
  
  <p>is there is any other better ways provided that the part of the code i want do display only is always the line no 59 ? how can echo this line only?</p>