Re: [phplib] timeouts? From: NickM (nick <email protected>)
Date: 10/04/00

Whatever you set the timeout value, which is for the server, will not prevent
the browsers timeout - as you have experienced. The only way to stop this is
to keep pumping some data to the browser at timed intervals, say every minute.
But more than this it needs to be output in such a way that it will render in
the browser. i.e. If you just print("wait"); every minute it will make no
difference. You need rather something like print("<div>wait</div><br>"); I
think that should work, or an entire table will also do.

BUT, even then I've experienced in the past that over very long times this can
eat up memory and can also still timeout, but just because the browsers cocks
up somehow. Anyway, from dealing with this sort of activity before I've found
that it is much cleaner and better to have an actual application that's doing
the work. This will either be flash or Java I guess, maybe Javascript.

So in Flash you might call your script to start the operation and the that
would create a text file with information and when it finishes and this can
then simply be called regularly from flash to get in the information and when
it has finished, or if errors occured. This sounds complicated but once you
get the idea of how flash calls scripts and passes variables it is easy.
Obviously other languages that run on the client might suit you better for this.

I don't know of any other ways around this though.

Nick
 

Quoting "Arno A. Karner" <karner <email protected>>:

> im starting to see time outs from my browser on long onerations or it
> least this is what it apperes to be?
> error popup from netscape error document contains no data. try again
> later, or contact the system administrator.
>
> what are my options to extend this time, i am replicating data bases,
> and want the job to compleate. i currently use set_time_limit(3*60*60),
> is there a header i can send to the browser as well?

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>