I made some edits, but now it’s doing the opposite of what I want.
See: http://icefaerie.org/twitch/
I know I’m still doing something wrong here. Anyways, this is the new edit:
<?php // Channels to pull the stuff from $live = array(); $channels = array("themittanidotcom", "djyumene", "daopa", "nightblue3", "cabochardlol", "moanygamer"); // This part does stuff ... and things! No touchie! $streamData = json_decode(@file_get_contents("https://api.twitch.tv/kraken/streams?channel=".implode(",",$channels)), true); foreach ($channels as $name) $live[$name] = null; foreach ($streamData["streams"] as $chdata) $live[$stream["channel"]["login"]] = $stream["channel"]; $game = $chdata['channel']['game']; $url = $chdata['channel']['url']; foreach ($live as $name => $channel) { if($channel != null){ echo "$name $game Online"; } else{ echo "$name Offline
"; } } ?>