I do not know any PHP but I'm trying to make a page to just echo a result which I can then use as a conky config.
This is what I have tried
<?php
$content=file_get_contents("https://btc-e.com/api/2/ltc_usd/ticker");
$data=json_decode($content);
echo "Current Price: $";
echo $data->ticker->avg;;
?>
But I just get "Current Price: $" without the actual price.
Any help is appreciated, thanks!