rendered paste body<?phprequire_once('Console/ProgressBar.php');$options['length'] = '300';function & displayProgressBar($length, $title = '') { /* Progress bar display (see documentation) */ $display = ' ' . ((!$title == '') ? $title . ' ' : '') . '(%fraction%) [%bar%] - %estimate% left'; /* Indicator for progress */ /*$progress = '=>';*/ $progress = '#'; /* Indicator for what's remaining */ $remaining = '-'; /* Width of the progress bar */ $width = '100'; return new Console_ProgressBar($display, $progress, $remaining, $width, $length);};$PBar = & displayProgressBar($options['length'], 'Testing Bar');/* Loop for the length of the weight */for ($i=0;$i<$options['length'];$i++) { /* Update the progress bar */ $PBar->update($i+1); time_nanosleep(0, 500000000); //sleep('1');}?>