file_get_contents and div
<p>What's wrong with my code?
I wish to get all dates from 
but my array is empty.</p>

<pre><code>&lt;?php
$url = "http://weather.yahoo.com/";
$page_all = file_get_contents($url); 

preg_match_all('#&lt;div id="myLocContainer"&gt;(.*)&lt;/div&gt;#', $page_all, $div_array);

echo "&lt;pre&gt;";
print_r($div_array);
echo "&lt;/pre&gt;";
?&gt;
</code></pre>

<p>Thanks</p>
