<?php
header('Cache-Control: no-cache, must-revalidate');
header('Content-type: application/json');
$jsonData = json_decode(file_get_contents(urlencode('https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:60,40&chl=Hello|World&chof=json')));
echo $jsonData;
?>
Error: failed to open stream: No such file or directory in <b>C:\wamp\www\file.php
I want to print the result as a json string so i can handle it with jquery ajax. What am i missing? Thanks