title: file_get_contents() how to fix error "Failed to open stream", "No such file"
body: <p>I'm getting the following error when I try to run my PHP script:</p>
  
  <blockquote>
    <p>failed to open stream: No such file or directory in C:\wamp\www\LOF\Data.php on line 3
    script:</p>
  </blockquote>
  
  <p>My code is as follows:</p>
  
  <pre><code>&lt;?php
  
  $json = json_decode(file_get_contents('prod.api.pvp.net/api/lol/euw/v1.1/game/by-summoner/20986461/recent?api_key=*key*'));
  
  print_r($json);
  
  ?&gt;
  </code></pre>
  
  <p>Note: <code>*key*</code> is a replacement for a string in the URL (my API key) and has been hidden for privacy reasons.</p>
  
  <p>I removed the <code>https://</code> from the URL to get one error to disappear. </p>
  
  <p>Am I doing something wrong here? Maybe the URL?</p>