Updating a progress bar during php scripts