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
Re: time consuming loop [message #170881 is a reply to message #170865] Sat, 04 December 2010 17:50 Go to previous messageGo to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:1jszks5.1v6hzcuelpu9sN%paulfredlein(at)optusnet(dot)com(dot)au,
Paul Fredlein <paulfredlein(at)optusnet(dot)com(dot)au> typed:
> 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

Perhaps you should describe what you're trying to do. I know if I ran into a
web page that timed out I'd probably already be long gone and not return.
More info would help.
HTH,

Twayne`
[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 03:11:08 GMT 2024

Total time taken to generate the page: 0.03879 seconds