PHP Classes

File: sample2.php

Recommend this page to a friend!
  Classes of Tom Schaefer   Script Progress   sample2.php   Download  
File: sample2.php
Role: Example script
Content type: text/plain
Description: modify progress indicator..
Class: Script Progress
Flush page output to show progress of server task
Author: By
Last change:
Date: 12 years ago
Size: 237 bytes
 

Contents

Class file image Download
<?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";