Hi i have been trying to pull data in JSON format. Here is my code
$resourse_url = 'http://www.livepicly.com/app/api.php?method=list_vendor_name';
$json_data = file_get_contents($resourse_url);
$json_output = json_decode($json_data, TRUE);
$vendor = $json_output['vendor_name'][1];
echo "<pre>";
print_r($vendor);
exit(1);
However when i run the code it does not return anything. When i try to access the source URL via firefox, it asks me where to save the JSON data as *.php, however when i access the source URL from Chrome it displays the JSON data as normal.
What do i have to do here? Can anyone point me to a solution? Thx