Login   Register  
PHP Classes
elePHPant
Icontem

File: scripts/arrayFetch.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Johan Barbier  >  No Timeout  >  scripts/arrayFetch.php  >  Download  
File: scripts/arrayFetch.php
Role: Application script
Content type: text/plain
Description: script
Class: No Timeout
Split the execution of long tasks in small steps
Author: By
Last change: Changed the way it works a bit
Date: 8 years ago
Size: 498 bytes
 

Contents

Class file image Download
<?php
header 
('Content-type: text/html; charset=iso-8859-1');
set_time_limit (2);
require_once 
'../class/class.noTimeOut.php';
if (isset (
$_POST['iStart'])) {
    
$aWork range (05000);
    
$oNTM = new noTimeOut;
    
$oNTM -> TYPE 'DEFAULT';
    
$oNTM -> START $_POST['iStart'];
    
$oNTM -> STEP $_POST['iStep'];
    
$aRes $oNTM -> flushMe ($aWork);
    if (!empty (
$aRes)) {
        
$sChaine '';
        foreach (
$aRes as $iClef => $sVal) {
            
$sChaine .= $sVal.' | ';
        }
        echo 
$sChaine;
    }
}
?>