Processing data using a web interface

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vernon Wenberg III

    #1

    Processing data using a web interface

    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?
  • Jerry Stuckle

    #2
    Re: Processing data using a web interface

    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.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...