What if you were to trigger a hit to the script that actually does the processing in the background with cURL, and give it a 2 second timeout?
PHP tells cURL to hit the processing PHP script, cURL hits the processing PHP script, cURL returns 2 seconds later but cURL's abort is ignored by the processing PHP script. Hey presto, zombie script running and the PHP script hit by the browser can stop loading. Of course, I dunno if that'll work. :) Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 3:38 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Stopping the browser from continuing to load > > > Hi All- > > I have a script in which I use ignore_user_abort() to perform some > extensive processing that > can take a few hours which there is no need for users to wait for. > > I display a message saying their submission is complete and > continue to run > the PHP script > in the background. It doesn't matter if they close their browser or > whatever, as the script continues > to run. > > My problem is, I want the browser to stop waiting for more > output from the > script. It confuses people > when it says you may now close the browser when the icon in > the top right > is still moving and the progress > bar is still moving. > > Is there any way in PHP (or even Javascript) that I can tell > the browser to > close the connection > (ie. the equivalent of hitting the stop button). > > Apparently "window.stop()" in javascript works in Netscape > Navigator but > not in IE. I really need this to > work in IE (and it only need be IE!). > > Any ideas? > > PS/ Not really keen on running a cron job to do the same thing when it > would be easier just to stop > the browser from loading. > > -Adam > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]