ignore user abort

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

ignore user abort

Post 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?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Why don't you give it a try? :?

But yes, TRUE should suffice.
Post Reply