note 107525 deleted from function.flush by danbrown

From: Date: Thu, 10 May 2012 20:53:20 +0000
Subject: note 107525 deleted from function.flush by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187840@lists.php.net to get a copy of this message
Note Submitter: spidgorny at gmail dot com ---- Improved progress bar which is utilizing immediate JavaScript commands to change the progress bar's DIV width (controlled from PHP). No sessions and no AJAX required. http://spidgorny.blogspot.com/2012/02/progress-bar-for-lengthy-php-process.html <?php require_once 'nadlib/class.ProgressBar.php'; $p = new ProgressBar(); $p->render(); for ($i = 0; $i < ($size = 100); $i++) { $p->setProgressBarProgress($i*100/$size); usleep(1000000*0.1); }

« previous php.notes (#187840) next »