????

Your IP : 3.133.148.130


Current Path : /opt/alt/php53/usr/share/doc/pear/ConsoleTools/docs/
Upload File :
Current File : //opt/alt/php53/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();

?>