函数:ignore_user_abort()

来源:互联网 发布:青蛙 知乎 编辑:程序博客网 时间:2024/04/25 09:12

ignore_user_abort

连接中断后程序是否执行

本 函数配置或取得使用端连接中断后,PHP 程序是否仍继续执行。默认值为中断连接后就停止执行。在 PHP 配置文件中 (php3.ini/php.ini) 的 ignore_user_abort 选项就是配置处。本功能在 PHP 3.0.7 版之后才开始提供。

ignore_user_abort


(PHP 3>= 3.0.7, PHP 4 )

ignore_user_abort --  Set whether a client disconnect should abort script execution

Description

int ignore_user_abort ( [bool setting])

This function sets whether a client disconnect should cause a script to be aborted. It will return the previous setting and can be called without an argument to not change the current setting and only return the current setting. See the Connection Handling section in the Features chapter for a complete description of connection handling in PHP.

原创粉丝点击