FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » time consuming loop
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
time consuming loop [message #170865] Sat, 04 December 2010 07:39 Go to previous message
paulfredlein is currently offline  paulfredlein
Messages: 8
Registered: December 2010
Karma:
Junior Member
Hi,

If I use a loop that's too time consuming the browser will complain. Is
there a callback or threads or something I can use and only do a small
number each time instead of the whole lot at once?

for(short i = 0; i < LONG_INT; i++)
{
doSomething();
}

Thanks,

Paul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Demo PHP/Ajax slideshow server crashing
Next Topic: Apache + PHP module segfaults
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 01:28:31 GMT 2024

Total time taken to generate the page: 0.07337 seconds