New episode handling classes in PHP (for my web scripts)