NYCPHP Meetup

NYPHP.org

[nycphp-talk] CLI output question

Joel De Gan joel at tagword.com
Wed Aug 17 17:40:54 EDT 2005


here is one I made the other day for doing a spin-cursor on FTP
transfers:

// just call with no arguments inside a loop.
function progress(){
	global $spinnerpos;
	$spinner = array("/","-","\\","\\|","/","-","\\","\\|");
	passthru("printf \"\\b\"".$spinner[$spinnerpos] ." ");
	$spinnerpos=($spinnerpos +1)%8;
}

Cheers.
-joel


On Wed, 2005-08-17 at 14:11 -0400, David Mintz wrote:
> Excellent -- I'm on my way. Thanks guys.
> 
> ---
> David Mintz
> http://davidmintz.org/
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
> 
> 
> 




More information about the talk mailing list