title: ERROR Access Denied when using php file_get_content
body: <p>I am using php <a href="http://php.net/manual/en/function.file-get-contents.php" rel="nofollow">file_get_contents</a> to get a webpage.<br>
  When i am doing it from my localhost everything works good.<br>
  But as soon as i do it from my shared hosting i get this error message:</p>
  
  <blockquote>
    <p>ERROR<br>
    Access Denied<br>
    Access Denied by security policy<br>
    The security policy for your network prevents your request from being allowed at this time. Please contact your administrator if you feel this is incorrect.</p>
  </blockquote>
  
  <p>this is the header i get back</p>
  
  <pre><code>array(4) { [0]=&gt; string(22) "HTTP/1.0 403 Forbidden" [1]=&gt; string(23) 
  "Content-Type: text/html" [2]=&gt; string(17) "Connection: close" [3]=&gt; string(19) 
  "Content-Length: 353" }
  </code></pre>
  
  <p>the code is straightforward </p>
  
  <pre><code>$page = file_get_contents('http://www.somedomain.com/');
  </code></pre>
  
  <p>if i try for current page it works</p>
  
  <pre><code> $page = file_get_contents('http://stackoverflow.com/questions/10565054/error-access-denied-when-using-php-file-get-content');
  </code></pre>
  
  <p>any ideas ? </p>