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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。