PHP Classes

File: sample7.php

Recommend this page to a friend!
  Classes of Tom Schaefer   Script Progress   sample7.php   Download  
File: sample7.php
Role: Example script
Content type: text/plain
Description: ul bar with css3
Class: Script Progress
Flush page output to show progress of server task
Author: By
Last change: bug fix
Date: 12 years ago
Size: 771 bytes
 

Contents

Class file image Download
<?php

include_once 'class.php';


/**
 * eight steps, each sleeps for 1 sec
 */
$buff = new ScriptProgress(8, 1000000);
$buff->addStylesheet();

$buff->set("<ul>");
# do some stuff here
$buff->next();


$buff->set("<li></li>");
# do some stuff here
$buff->next();

$buff->set("<li></li>");
# do some stuff here
$buff->next();

$buff->set("<li></li>");
# do some stuff here
$buff->next();

$buff->set("<li></li>");
# do some stuff here
$buff->next();

$buff->set("<li></li>");
# do some stuff here
$buff->next();

$buff->set("<li></li>");
# do some stuff here
$buff->next();

$buff->set("<li></li>");
# do some stuff here
$buff->next();


# end operation
$buff->set("</ul><br/>done");
# do some stuff here
$buff->next();