Re: [PHP] limit in a loop function to prevent server load

2002-09-04 Thread timo stamm
Hi Electroteque, Am Dienstag den, 3. September 2002, um 10:14, schrieb Bas Jobsen: >> hi there i was wondering if there was a way to limit the >> ammount of items >> in a loop to execute sleep then execute the rest of the items >> to prevent >> server load ? > > for($i=0;...) > { > if($i>0

Re: [PHP] limit in a loop function to prevent server load

2002-09-03 Thread Bas Jobsen
Op dinsdag 03 september 2002 10:46, schreef u: > hi there i was wondering if there was a way to limit the ammount of items > in a loop to execute sleep then execute the rest of the items to prevent > server load ? for($i=0;...) { if($i>0&&$i%100==0)sleep(10); } -- PHP General Mailing List