PHP ignore_user_abort () function
Examples
Is set to false (default) - disconnecting client terminates the execution of the script:
<?php
ignore_user_abort();
?>
ignore_user_abort();
?>
The output of the code above is as follows:
0
Definition and Usage
ignore_user_abort () function sets whether the remote client disconnects will terminate script execution.
Tip: You can not call this function without parameters, return to the current settings.
grammar
ignore_user_abort( setting )
参数 | 描述 |
---|---|
setting | 可选。如果设置为 TRUE,则忽略与用户的断开(脚本将继续运行)。默认情况下是设置为 FALSE,与客户机断开会导致脚本停止运行。 |
technical details
return value: | The return value (a Boolean value) user-abort set before. |
---|---|
PHP version: | 4+ |
PHP Misc Reference Manual