Can anyone help? I'm trying to grab the last price from Mt Gox using the following code:
<?php
$url = '
https://mtgox.com/api/0/data/ticker.php'; $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, $url);
$json = curl_exec($ch);
curl_close($ch);
echo $json;//['ticker']['last'];
?>
and it's just hanging. Can anyone spot an error or if it's completely wrong just give me the right code? 1 BTC bounty if it works!
Thanks!