PHPのignore_user_abort()関数
例
falseに設定(デフォルト)-クライアントが中止すると、スクリプトの実行が停止します。
<?php
ignore_user_abort();
?>
上記のコードの出力は次のようになります。
0
定義と使用法
ignore_user_abort()関数は、ユーザーが切断したときにスクリプトの実行を中止するかどうかを設定します。
構文
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 |
技術的な詳細
戻り値: | ユーザー中止設定の以前の値を返します |
---|---|
PHPバージョン: | 4歳以上 |
❮PHPその他のリファレンス