fetch html content from website
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php">How to parse and process HTML with PHP?</a>  </p>
</blockquote>



<p>I have used this code for fetching html content from given website of url.</p>

<pre><code>**Code:**

=================================================================

example URL: http://www.qatarsale.com/EnMain.aspx

/*

$regexp = '/&lt;div id="UpdatePanel4"&gt;(.*?)&lt;\/div&gt;/i';

@preg_match_all($regexp, @file_get_contents('http://www.qatarsale.com/EnMain.aspx'), $matches, PREG_SET_ORDER);*/

/*
</code></pre>

<p>but $matches returns blank array. I want fetch all html content that are found in div id="UpdatePanel4".</p>

<p>If anybody have any solution please suggest me.</p>

<p>Thanks</p>
