title: json_decode is not working and echos nothing
body: <p>I am having a lot of issues getting a response from json using php.
  The code below echos nothing and I have no idea why. 
  I need to be able to access all points of that json file individually through functions.</p>
  
  <blockquote>
    <p>file.json</p>
  </blockquote>
  
  <pre><code>{
      "file":{
          "name": "File Name",
          "description": "This is a file!",
          "license": "glp-2.0",
          "version": "1.1.1",
          "author": [{
              "name": "Author Name",
              "email": "name@domain.com"
          }],
          "require": [{
              "php": "&gt;= 5.2.4",
              "myslq": "&gt;= 5.0",
          }]
      }
  }
  </code></pre>
  
  <blockquote>
    <p>localhost/data.php</p>
  </blockquote>
  
  <pre><code>define('PATH', 'http://domain.com/json/');
  
  function test(){
      $json = file_get_contents( PATH."file.json" );
      $data = json_decode($json,true);
      echo $data['file']['name'];
  }
  
  test();
  </code></pre>