Location: PHPKode > scripts > PogProgressBar > example1.php
<?php

# Example1.php

require_once( 'PogProgressBar.php' );

$objBar = new PogProgressBar( 'pb' );

?>
<html>
	<head>
		<title>PogProgressBar - Example 1</title>
	</head>
	<body>
		<table align="center" cellpadding="0" cellspacing="20" border="0">
			<tr><td>PogProgressBar - Example 1</td></tr>
			<tr><td><? $objBar->draw(); ?></td></tr>
		</table>
	</body>
<html>
<?php

$intMax = 1000;
$intCount = 0;
while ( $objBar->getProgress() < 100 )
{
	$objBar->setProgress( $intCount++ * 100 / $intMax );
	usleep( 100 );
}

?>
Return current item: PogProgressBar