Set to false (default) - client aborts will cause the script to stop running:
<?php
ignore_user_abort();
?>
The output of the code above could be:
0
The ignore_user_abort() function sets whether a user should abort a script execution when he/she disconnects.
ignore_user_abort(
setting)
Parameter | Description |
---|---|
setting | Optional. TRUE ignores user aborts in a script (the script will continue to run). This is FALSE by default, meaning that client aborts will cause the script to stop running |
Return Value: | Returns the previous value of the user-abort setting |
---|---|
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!