Failing to retrieve a page with file_get_contents
<p>I want to scrape some google page with file get contents function:</p>

<pre><code>     $encoded='http://www.google.co.il/#hl=en&amp;biw=1440&amp;bih=799&amp;sclient=psy-ab&amp;q=site:'.urlencode("http://stackoverflow.com/");

    echo  file_get_contents($encoded);
</code></pre>

<p>When I do this:</p>

<p>echo $encoded;</p>

<p>I get this: </p>

<pre><code>http://www.google.co.il/#hl=en&amp;biw=1440&amp;bih=799&amp;sclient=psy-ab&amp;q=site:http%3A%2F%2Fstackoverflow.com%2F
</code></pre>

<p>When I put it in the url.. I get the page that I want</p>

<p>But when I use the function , I simply get the main google page..why does this happen?</p>
