Check if a stream is online

Is that in the javascript or something? Im so confused, PHP?