D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
php55
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
/
Filename :
tutorial_example_06_progressbar_basic.php
back
Copy
<?php require_once 'tutorial_autoload.php'; $output = new ezcConsoleOutput(); $bar = new ezcConsoleProgressbar( $output, 15 ); for ( $i = 0; $i < 15; $i++ ) { $bar->advance(); usleep( mt_rand( 2000, 200000 ) ); } $bar->finish(); $output->outputLine(); ?>