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

Abort script

P: n/a
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

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Muffinman wrote:
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?


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

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.