Hallo,
ich muss mal wieder eine JSON-Public-API auslesen. Diesen Code benutze ich normalerweise:
$API = @file_get_contents("jsonapi.json");
$array = json_decode($API, true);
if(!$array)
echo "Nope.";
if(!isset($array['uptimePercent4']))
$Uptime = $array['stats']['uptimePercentIPv4'];
Nun habe...