PHP Classes

File: index3.php

Recommend this page to a friend!
  Classes of Johan Barbier   No Timeout   index3.php   Download  
File: index3.php
Role: Example script
Content type: text/plain
Description: example
Class: No Timeout
Split the execution of long tasks in small steps
Author: By
Last change: Added multiple asynchronous threads handling via stacks
Date: 17 years ago
Size: 1,130 bytes


Class file image Download
* basic test reading an array
* step is 10 lines
<?xml version
="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="fr" lang="fr">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script language="Javascript" type="text/javascript" src="class/class.noTimeOut.js"></script>
        <script type="text/javascript">
        oBuffer = new noTimeOut ();
        oBuffer.declareStack ('ARRAY');
        oBuffer.initialize ('ARRAY', 'START', 0);
        oBuffer.initialize ('ARRAY', 'LIMIT', 5000);
        oBuffer.initialize ('ARRAY', 'STEP', 10);
        oBuffer.initialize ('ARRAY', 'TARGET', 'divContent');
        oBuffer.initialize ('ARRAY', 'MSG', 'msg');
        oBuffer.initialize ('ARRAY', 'SCRIPT', 'scripts/arrayFetch.php');
        oBuffer.initialize ('ARRAY', 'TYPE', 'DEFAULT');

        oBuffer.startWork ('ARRAY');
        <div id="msg">Waiting</div>
        <div id="divContent" style="width: 500px;"></div>