On Wed, April 25, 2007 10:21 am, Richard Quadling wrote: > Running PHP via ISAPI on Sambar Server. > > I have a script which is allowed to take a long time. > > The user has an Abort option and via clever use of sessions, the > script can be terminated.
[This answer probably belongs on php-general, but does not directly address the apropos question.] I suspect that you may want to do some serious browser-compatibility testing here... It's possible that the "stupid" users are the ones using a browser in which your Abort process simply doesn't work. You might also want to consider converting the whole thing over to a "job" oriented model. Users submit "jobs" and they are processed, perhaps piece-meal, until finished. Once you have it "job" oriented, it gets a lot easier to manage long-running jobs, notifiy users of status, etc. And then NOBODY has to sit there waiting for too long, and your HTTP connections are freed up to do something useful. Tying up the relatively expensive HTTP connection for a long-running process that requires no human interaction is kinda silly, usually. :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php