title: How to parse JSON from a URL with PHP
body: <p>I have this URL:</p>
  
  <pre><code>http://server.com/api.php?results
  
  {"Name":"Pit, Loka","Current":{"Item":"16","test":"test","test":"84","test":"ok"}}
  </code></pre>
  
  <p>I guess the PHP Example is:</p>
  
  <pre><code>&lt;?php
  $file = file_get_contents("http://server.com/api.php?results=item");
  $data = json_decode($file);
  print_r($data);
  ?&gt;
  </code></pre>
  
  <p>but I can't get any results.<br>
  How can I solve this problem?</p>