D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
php55
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
/
Filename :
tutorial_example_11_progressmonitor.php
back
Copy
<?php require_once 'tutorial_autoload.php'; $output = new ezcConsoleOutput(); $status = new ezcConsoleProgressMonitor( $output, 7 ); $i = 0; while( $i++ < 7 ) { usleep( mt_rand( 20000, 2000000 ) ); $status->addEntry( 'ACTION', "Performed action #{$i}." ); } $output->outputLine(); ?>