PHP ignore_user_abort() Function
Example
Set to false (default) - disconnecting the client terminates script execution:
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 terminates script execution.
**Tip:** You can call this function without parameters to return the current setting.
Syntax
ignore_user_abort(
setting
)
| Parameters | Description |
|---|---|
| setting | Optional. If set to TRUE, the client disconnect is ignored (the script continues to run). By default it is FALSE, so disconnecting the client stops the script. |
Technical Details
| Return Value: | Returns the previous value of the user-abort setting (a boolean). |
|---|---|
| PHP Version: | 4+ |
PHP Misc Reference Manual