0
Hello, I want to print some data from a JSON page in PHP, for example:
I got this page here http://hts03.kshost.com.br:8642/statistics? json=1
JSON:
{
"totalstreams": 1,
"activestreams": 1,
"currentlisteners": 19,
"peaklisteners": 57,
"maxlisteners": 500,
"uniquelisteners": 18,
"averagetime": 881,
"version": "2.2.1.109 (posix(linux x64))",
"streams": [{
"id": 1,
"currentlisteners": 19,
"peaklisteners": 57,
"maxlisteners": 500,
"uniquelisteners": 18,
"averagetime": 881,
"servergenre": "� s� granada na cara da concorrencia",
"serverurl": "http:\/\/www.habbonados.com.br",
"servertitle": "gabrielsa441",
"songtitle": "Wiz Khalifa - See You Again ft. Charlie Puth [Official Video] Furious 7 Soundtrack",
"irc": "https:\/\/www.habbo.com.br\/hotel?room=81601237",
"icq": "NA",
"aim": "NA",
"streamhits": 2493,
"streamstatus": 1,
"backupstatus": 0,
"streampath": "\/",
"streamuptime": 645,
"bitrate": 64,
"content": "audio\/aacp"
}]
}
I want to get that data out of her:
"uniquelisteners":10,
"averagetime":462,
"servergenre":"� s� granada na cara da concorrencia"
And move to a PHP page with echo
Please put the external link data in the question. With the
formatação
.– Florida