PHP ignore_user_abort()Functions

PHP Misc 参考手册PHP Misc Reference Manual

Examples

Set to false (default) - Disconnecting from the client will terminate script execution:

<?php
ignore_user_abort();
?>

The output of the above code is as follows:

0


Definition and Usage

The ignore_user_abort() function sets whether disconnecting from the remote client will terminate script execution.

Tip:You can call this function without arguments to return the current setting.


Syntax

ignore_user_abort(setting)

Parameter Description
setting Optional. If set to TRUE, disconnection from the user is ignored (the script will continue running). By default it is set to FALSE, and disconnecting from the client will cause the script to stop running.

Technical Details

Return Value: Returns the previous value of the user-abort setting (a boolean).
PHP Version: 4+


PHP Misc 参考手册PHP Misc Reference Manual Other Extensions