hash)){ //Log Stream file_put_contents("status.json", json_encode(array("status"=>array("name"=>$curStreamer->name, "time"=>time())))); //Redirect to the public stream header("Location: rtmp://127.0.0.1/public/index"); //Prevent further execution die(); } } //If we fell through the loop with no matches, return 403 forbidden http_response_code(403); ?>