My web host does not support file_get_contents for security reasons but does support the use of cURL. Can anyone tell me now I would convert this short code using curl? I've been trying for days with no luck so any help would be greatly appreciated!
<?php
$json_string = file_get_contents("http://api.wunderground.com/api/b2b4a1ad0a889006/geolookup
/conditions/q/IA/Cedar_Rapids.json");
$parsed_json = json_decode($json_string);
$location = $parsed_json->{'location'}->{'city'};
$temp_f = $parsed_json->{'current_observation'}->{'temp_f'};
echo "Current temperature in ${location} is: ${temp_f}
";
?>