Is it possible instead of augment the time limit execution of a php script
to find a way to perform the execution in different pages in smaller steps?
in practice I was thinking about somethin like this (pseudo code):
<?php
define("LIMIT_NUM_EXEC", 100);
//get the start point
$startpoint= $_REQUEST['startpoint'];
//big array of data to manage
$myArray = array('el01', 'el02', 'el03'....
//cycle performing heavy calc in time
for(
$i=$startpoint;
($i<$startpoint+LIMIT_NUM_EXEC && $i<count($myArray));
$i++
){
//do stuff
}
//when finished recall itself like
header ("Location:itself.php?startpoint=".$startpoint+LIMIT_NUM_EXEC);
?>
//first call
itself.php?startpoint=0
this is not intended for internet users but for site admin only... so just one call every so often...
what you think?