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;...) {

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

2002-09-03 Thread electroteque
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 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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($i0$i%100==0)sleep(10); } -- PHP General Mailing List