<?php include_once 'class.php'; $buff = new ScriptProgress(100,50000); $buff->set("Start"); $j = 1; for($i=0;$i<1000;$i++){ if ($i%10==0) { $buff->set($j."% "); $buff->next(); $j++; } } echo "done";