Location: PHPKode > scripts > No Timeout > no-timeout/scripts/arrayFetch.php
<?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 (0, 5000);
	$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;
	}
}
?>
Return current item: No Timeout