title: file_get_contents doesn't respond
body: <p>I'm trying to get a JSON string from a page in my Laravel Project. Using this:</p>
  
  <pre><code>$json = file_get_contents($url);
  $data = json_decode($json, TRUE);
  return View::make('adventuretime.marceline')
      -&gt;with('json', $json)
      -&gt;with('title', 'ICE KING')
      -&gt;with('description', 'I am the Ice King')
      -&gt;with('content', 'ice king');
  </code></pre>
  
  <p>But since I'm only using a localhost, I think this doesn't work that's why it doesn't output anything. I want to know what is the proper way for it to be flexible and be able to get the JSON string with any $url value using php? </p>