Hướng dẫn ignore_user_abort in php
(PHP 4, PHP 5, PHP 7, PHP 8) ignore_user_abort — Set whether a client disconnect should abort script execution Descriptionignore_user_abort(?bool When
running PHP as a command line script, and the script's tty goes away without the script being terminated then the script will die the next time it tries to write anything, unless Parametersenable If set and not Return ValuesReturns the previous setting, as an integer. Changelog
ExamplesExample #1 A ignore_user_abort() example
'Testing connection handling in PHP';// Run a pointless loop that sometime NotesPHP will not detect that the user has aborted the connection until an attempt is made to send information to the client. Simply using an echo statement does not guarantee that information is sent, see flush(). See Also
spiritual-coder at spiritual-coder dot com ¶ 16 years ago
lukas dot starecek at centrum dot cz ¶ 13 years ago
(2); Anonymous ¶ 13 years ago
Charlie Brown ¶ 7 years ago
plamen at pulsator dot com ¶ 21 years ago
|