real time progress bar implementation for php