i make a little proxy for get ticker data
proxy2.php
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18");
curl_setopt($ch, CURLOPT_URL, 'https://mtgox.com/code/data/ticker.php');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
curl_close($ch);
echo json_encode($output);
?>
in html file i have
in log i have
"{\"ticker\":{\"high\":12.17887,\"low\":11.4919,\"avg\":11.931998599,\"vwap\":11.880445695,\"vol\":61162,\"last_all\":12.1,\"last_local\":12.1,\"last\":12.1,\"buy\":12.09999,\"sell\":12.1}}"
D:
in ticker_mtgox y have nothing
maybe the problem is because I should get something like this
{"ticker":{"high":12.17887000,"low":11.49190000,"vol":61092.00000000,"last":12.10000000,"buy":12.09999000,"sell":12.10000000,"date":1344913200}}
without the "\" symbols
can help me to fix it..or tell me a way to "ticker_mtgox" work?