11 comments

Brian Moon Says:
Yeah, I almost made it a class, but that seemed really heavy for something so simple.

Toby Says:
eZ Components also has a quite advanced progress bar class: http://ezcomponents.org/docs/api/latest/introduction_ConsoleTools.html#progress-indication

Bertrand Says:
After using it a few times, I can confirm that the eZ Components progress bar library is indeed an excellent one, with an easy to use API.

real-url.org/twitted.php?id=1032758257 Says:
Linkback: http://real-url.org/twitted.php?id=1032758257

docs.urtechnology.com/2010/03/brian-moons-blog-... Says:
Linkback: http://docs.urtechnology.com/2010/03/brian-moons-blog-php-command-line-progress-bar/

www.octofinder.com/@/a60293c5efb2be37a1ed63ea52... Says:
Linkback: http://www.octofinder.com/@/a60293c5efb2be37a1ed63ea5247a8ad

www.phpdigg.net/2010/03/12/php-command-line-pro... Says:
Linkback: http://www.phpdigg.net/2010/03/12/php-command-line-progress-bar/

www.developercast.com/2010/03/11/brian-moons-bl... Says:
Linkback: http://www.developercast.com/2010/03/11/brian-moons-blog-php-command-line-progress-bar/

Jérôme Macias Says:
Thanks for this simple and usefull little piece of code.
Using librairy may be better but not in this case, this is just one function !

Bastien Helders Says:
As far as I understand, it is only for use on php console applications?
It might be the wrong place to ask, but is there some work done on a web application variant, maybe with some javascript?
Comments are disabled for this post.
Christian Weiske Says:
PEAR has a CLI progressbar library that also allows you to reset the CLi afterwards, plus a bunch of more options:
http://pear.php.net/package/Console_Progressbar