| 
<?php
 include_once 'class.0.2.php';
 
 
 /**
 * eight steps, each sleeps for 1 sec
 */
 $buff = new ScriptProgress(8, 1000000);
 $buff->addStylesheet();
 $buff->addScript(); // embed notification script
 
 $buff->set("<ul>");
 # do some stuff here
 $buff->notify("initialize"); // notification
 $buff->next();
 
 
 $buff->set("<li></li>");
 $buff->notify("configure");
 # do some stuff here
 $buff->next();
 
 $buff->set("<li></li>");
 $buff->notify("prepare process");
 # do some stuff here
 $buff->next();
 
 $buff->set("<li></li>");
 $buff->notify("execute process");
 # do some stuff here
 $buff->next();
 
 $buff->set("<li></li>");
 $buff->notify("post process");
 # do some stuff here
 $buff->next();
 
 $buff->set("<li></li>");
 $buff->notify("send messages");
 # do some stuff here
 $buff->next();
 
 $buff->set("<li></li>");
 $buff->notify("log protocol");
 # do some stuff here
 $buff->next();
 
 $buff->set("<li></li>");
 $buff->notify("render application");
 # do some stuff here
 $buff->next();
 
 
 # end operation
 $buff->set("</ul>");
 $buff->notify("done");
 
 # do some stuff here
 $buff->next();
 
 |