Current File : //opt/alt/php55/usr/share/doc/pear/ConsoleTools/docs/tutorial_example_11_progressmonitor.php
<?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();

?>