Portfolio:


kupony-zlavy-obchody.sk
e-dir.eu
e-katalog.sk
Stonework.ie
Elnec LTD
FabulouCoupons
FreeVoices

Links:

obec Raznany

Simple trick with php and Meta-Refresh

You can use this trick for scripts, which works with large dataset, and time of execution of php script is set for short time.

Script has max execution counter,  testing in stop() function, returns bool value.

 I think this script will help you ... 

<?
function meta_refresh($url, $delay) {
global $id;
?>
<meta http-equiv="refresh" content="<?=$delay?>; url=<?=$url?>">
<?
}

function stop() {
global $id, $max;
if($id == $max) return true;
else return false;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?
$max = 10; // max steps
$id = intval($_GET['id']) != "" ? ++$_GET['id'] : 1;
?>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Meta-Refresh Example</title>
<?
if(!stop())
meta_refresh("example.php?id=$id", 0);
?>
<link rel="stylesheet" type="text/css" href="text.css" media="screen" />
</head>
<body>
<?
echo "Actual ID:".$id;
?>
</body>
</html>
 

(31. Jul. 2007, counter 1095x)