ignore_user_abort() 函数设置远程客户端是否可以中止脚本的运行。
用法
ignore_user_abort(setting)
参数
setting− True 忽略脚本中的用户中止(脚本将继续运行)。默认情况下这是错误的,即客户端中止将导致脚本停止运行
返回
ignore_user_abort() 函数返回 user-abort 设置的先前值。
示例
以下是设置为 false 即默认值的示例。客户端中止将导致脚本停止运行。
<?php
ignore_user_abort();
?>
输出
以下是输出。
0
相关用法
- PHP is_file( )用法及代码示例
- PHP imagegif()用法及代码示例
- PHP imageresolution()用法及代码示例
- PHP imagebmp()用法及代码示例
- PHP is_link( )用法及代码示例
- PHP imap_getsubscribed()用法及代码示例
- PHP is_link()用法及代码示例
- PHP imagearc()用法及代码示例
- PHP imageftbbox()用法及代码示例
- PHP idate()用法及代码示例
- PHP imagecreatefromgif()用法及代码示例
- PHP imap_header()用法及代码示例
- PHP imap_last_error()用法及代码示例
- PHP imap_mutf7_to_utf8()用法及代码示例
- PHP imagecreatefromstring()用法及代码示例
- PHP isset()和array_key_exists()的区别用法及代码示例
- PHP imagecopyresampled()用法及代码示例
- PHP imap_headerinfo()用法及代码示例
- PHP imagestring()用法及代码示例
- PHP is_subclass_of()用法及代码示例
注:本文由纯净天空筛选整理自Ankith Reddy大神的英文原创作品 ignore_user_abort() function in PHP。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。