'Zend_ProgressBar_Update', 'finishMethodName' => 'Zend_ProgressBar_Finish')); $progressBar = new Zend_ProgressBar($adapter, 0, 100); for ($i = 1; $i <= 100; $i++) { if ($i < 20) { $text = 'Just beginning'; } else if ($i < 50) { $text = 'A bit done'; } else if ($i < 80) { $text = 'Getting closer'; } else { $text = 'Nearly done'; } $progressBar->update($i, $text); usleep(100000); } $progressBar->finish(); die; } ?>