Abort script

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

Threaded View

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

Thanks in advance, Maarten

Re: Abort script

Muffinman wrote:

Quoted text here. Click to load it

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().


Site Timeline