Can't get a content in PHP
<p>I have this function:</p>

<pre><code>function get_vk($url) {
    $str = file_get_contents("http://vk.com/share.php?act=count&amp;index=1&amp;url=" . $url);
    if (!$str) return 0;
    return preg_match('/^VK.Share.count\((\d+),\s+(\d+)\);$/i', $rq, $i) ? (int) $i[2] : 0;
}
</code></pre>

<p>But this function always return 0, because <code>$str</code> is NULL. But if we just put this link </p>

<pre><code>https://vk.com/share.php?act=count&amp;index=1&amp;url=http://stackoverflow.com
</code></pre>

<p>into the browser it will return <code>VK.Share.count(1, 43);</code> Where is the problem ?</p>
