PHP Progress Monitor using output buffer flush with working example