need help with this php script
Here’s a quick little script that will do just that. I tried to make it as simple and easy to understand as I could.
<?php
$json = file_get_contents('https://data.mtgox.com/api/1/generic/order/lag');
$result = json_decode($json,true);
echo sprintf("%01.2f minutes", $result['return']['lag_secs'] / 60);
?>