im experimenting with JSON Api's with PHP. Im using a free Bitcoin price ticker api from Blockchain. Its working but to refresh the data i need to refresh the page. Would it be possible to auto-update the data without refreshing the page? This is what i got now (its working)
<?php
$json = file_get_contents('https://blockchain.info/ticker');
$data = json_decode($json,true);
$priceUSD = $data['USD']['last'];
echo $priceUSD;
Thanks in advance, have a nice day!
King regards,
L Kenselaar