By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

Processing data using a web interface

P: n/a
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?
Jul 25 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Vernon Wenberg III wrote:
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?
Vernon,

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
immediately.

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.
js*******@attglobal.net
==================
Jul 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.