I have been using this code for the past 2-3 months to grab json data variables that are needed. When the url changes to https:// it errors out and won't display. Is there a different way to grab https from http for json url's and php? I can't seem to find anything in terms of a good example or documentation.
<?
$btcjsonurl = "http://blockchain.info/stats?format=json";
$btcjson = file_get_contents($btcjsonurl,0,null,null);
$btcdata = json_decode($btcjson, true);
$btcdiff = $btcdata['difficulty'];
echo $btcdiff;
?>