What is the output of file_get_contents('https://api.twitch.tv/kraken/streams?channel='.$channelname.'&client_id'.$clientId)?
What is the output of file_get_contents('https://api.twitch.tv/kraken/streams?channel='.$channelname.'&client_id'.$clientId)?