Processing data using a web interface

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a script that processes a lot of data. Ideally it would be run  
from the CLI, however I want to run it from a browser, but I don't want  
the browser hanging on me forcing me to restart from scratch.

My question is, how do I output data to the browser when something is  
processed when it is processed instead of having all the output come at  
once when the script is done?

Is there a set amount of time where the page processing the data might  
time out? If so, how do I change this timeout to when the script is done?

Re: Processing data using a web interface

Vernon Wenberg III wrote:
Quoted text here. Click to load it


There's no way to ensure the data will be displayed.

You can call flush() to force the output out of php.  But the web server  
is still free to cache it, and the browser may or may not display it  

You can't do much about the server, but browsers are more likely to  
cache data if you have things like tables which haven't been closed yet  
(</table not sent yet).  But that's not necessarily the only reason.  
Keeping the data simpler helps.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline