Re: Console_Progressbar

From: Date: Thu, 16 Feb 2006 07:26:05 +0000
Subject: Re: Console_Progressbar
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23006@lists.php.net to get a copy of this message
On Thu, 2006-02-16 at 17:35 +1100, Dan Rossi wrote: > Any ideas what could be displaying this issue ? > > [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ > [[[[[[[[[[[[[[[[[[[[[[[[[[[[======================>-------------------] > 54.46 > > > $bar = new Console_ProgressBar('[%bar%] %percent%', '=>', '-', > 50, > $do->count()); > > ... > > $bar->update($i); > > > What am i doing wrong ? This is only snippets of the code. > It's to do with differences in the PHP sprintf function between different versions, specifically the string padding stuff. If you remove all the fancy stuff and just display the bar it should work correctly Adam

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.pear.general (#23006) next »