title: php file_get_contents authorization header
body: <p>Can anyone give me any explanation for why this authorization function for a private bitbucket repository is working on my local machine (running PHP Version 5.3.17) but is not authorizing on my remote server (running PHP Version 5.3.20)</p>
  
  <p>I'm not getting an error per se -- i'm just getting a "forbidden" response from bitbucket. But everything works great running from my local server.</p>
  
  <pre><code>function bitBucketConnect($url){
      global $bitPassword;
      global $bitUsername;
      $context = stream_context_create(array(
       'http' =&gt; array(
         'header' =&gt; "Authorization: Basic " . base64_encode("$bitUsername:$bitPassword")
         )
      ));
  
   // Make the request
   return file_get_contents($url, false, $context);
   }
  </code></pre>