Page 1 of 1

ignore user abort

Posted: Wed Jan 04, 2006 1:40 pm
by s.dot
http://www.php.net/ignore_user_abort

the documentation on this function is scarce.. but I need to ignore user abort on one of my scripts because it involves very important changes to the database that can't be stopped only halfway through the script

the doc says ignore_user_abort ( [bool] )

so I'm guessing I do

Code: Select all

ignore_user_abort(1);
or

Code: Select all

ignore_user_abort(TRUE);
is this correct? has anyone else used this function?

Posted: Wed Jan 04, 2006 1:56 pm
by John Cartwright
Why don't you give it a try? :?

But yes, TRUE should suffice.