I have this code ( at the bottom of this document ) with php, and I was wondering what I broke? I get the following error when I try and access the page on my Localhost "
<?php
$channelName = 'branndons';
$clientId = 'ashdjksahjkdhjshdjksa'; //not my real id... js
if ($json_array['stream'] != NULL) {
$channelTitle = $json_array['stream']['channel']['display_name'];
$streamTitle = $json_array['stream']['channel']['status'];
$currentGame = $json_array['stream']['channel']['game'];
echo "$channelTitle is online playing $currentGame";
} else {
echo "$channelName is offline";
}
?>