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
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
2 matches
Mail list logo