Need to add client_id to old script

{insert comment about how you should be using curl instead of file_get_contents}

Quick fix:

$s = file_get_contents("https://api.twitch.tv/kraken/streams?client_id=xxxxxxx&channel=".$channel);

xxxxxxx being your client ID.