Abort script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Muffinman

    Abort script

    Hi,

    I have this script which can run for twenty minutes to which I also have
    set it's time limit. However if the user want's to abort and closes the
    window or whatever the script keeps on running until it is finished. Is
    it possible to give the user the possibility to abort the script on the
    server?

    Thanks in advance, Maarten

  • Tommy Gildseth

    #2
    Re: Abort script

    Muffinman wrote:
    [color=blue]
    > Hi,
    >
    > I have this script which can run for twenty minutes to which I also have
    > set it's time limit. However if the user want's to abort and closes the
    > window or whatever the script keeps on running until it is finished. Is
    > it possible to give the user the possibility to abort the script on the
    > server?[/color]

    The script won't notice the user is gone before it tries to send some output
    to the user.
    So, the answer to your question is, send some output. This can be just a
    bunch of blank spaces etc.
    If you wan't to make sure the script actually sends it, you can use flush().

    --
    Tommy

    Comment

    Working...