the following code was working to retrieve the usd price, now for some reason its not
<?php
require 'Mysql.php';
require 'Util.php';
$file = file_get_contents("
http://blockchain.info/ticker");
$vars = json_decode($file, true);
$usd = $vars['USD']['15m'];
$net_usd = number_format((($usd) * (100 - Settings::fee)) / 100, 2);
echo $net_usd returns zero when should be the price. offering 0.1 btc to someone who can fix.
Try changing the url in file_get_contents to be https://
$file = file_get_contents("https://blockchain.info/ticker");
Blockchain.info recently changed some things around, and maybe you're not getting the file through redirect.