title: json parse from result.php file url
body: <p>i have a php file that return json. here my php file.</p>
  
  <p><a href="http://dev.mediaodd.com/data/testjson.php" rel="nofollow">http://dev.mediaodd.com/data/testjson.php</a></p>
  
  <p>if i use writing testjson.json file it will success but if i use .php it will failed.</p>
  
  <p>this is my output script:</p>
  
  <pre><code>&lt;?php
  // copy file content into a string var
  
  $jsondata = file_get_contents('http://dev.mediaodd.com/data/testjson.php');
  $obj = json_decode($jsondata,true);
  
  
  echo $obj['company'][0]['id'];
  
  ?&gt;
  </code></pre>
  
  <p>what did i do wrong?</p>
  
  <p>file_get_contents cant read .php file?</p>
  
  <p>my testjson.php file return same as testjason.json file.</p>