Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
Ok, I may be a little bad at telling people what exactly I want. Probably I should try and figure this out for myself, I'm good at that! :D "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10 September 2003 12:14, zavaboy contributed these pearls of wisdom: > > > if I w

RE: [PHP] Setting execution time for a loop

2003-09-10 Thread Ford, Mike [LSS]
On 10 September 2003 12:14, zavaboy contributed these pearls of wisdom: > if I wait untill $sDate is zero, it'll be in 2000. > I have $Date based on the current date, like to day is: 03252 > 03 is the year 252 is the day of the year. So for goodness' sake just choose a sensible value to limit the

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
if I wait untill $sDate is zero, it'll be in 2000. I have $Date based on the current date, like to day is: 03252 03 is the year 252 is the day of the year. "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10 September 2003 11:26, zavaboy contributed these pearls of wisd

RE: [PHP] Setting execution time for a loop

2003-09-10 Thread Ford, Mike [LSS]
On 10 September 2003 11:26, zavaboy contributed these pearls of wisdom: > // Ok, I have a loop: > for ($i = $Date; $i >= $sDate; $i--) > > // Somthing like this is inside the loop: > if ($Exists) > echo "Something here."; > else > $sDate--; > > I have it check if it exists, if it doesn't, then

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
// Ok, I have a loop: for ($i = $Date; $i >= $sDate; $i--) // Somthing like this is inside the loop: if ($Exists) echo "Something here."; else $sDate--; I have it check if it exists, if it doesn't, then it reduces $sDate by 1. $sDate is initially 3 to 31 days less than $Date. By reducing $sDate

Re: [PHP] Setting execution time for a loop

2003-09-09 Thread Curt Zirzow
* Thus wrote zavaboy ([EMAIL PROTECTED]): > How do I set execution time for a for() loop? > Like I have a loop stop once it finds 3 things, but what happens when there > are only 2 things? It keeps looking for 30 seconds then shows this error: > Fatal error: Maximum execution time of 30 seconds exc