Re: limit in a loop function to prevent server load

From: Date: Tue, 03 Sep 2002 08:14:22 +0000
Subject: Re: limit in a loop function to prevent server load
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114994@lists.php.net to get a copy of this message
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); }

« previous php.general (#114994) next »