|
ignore_user_abortSet whether a client disconnect should abort script execution Description
int ignore_user_abort
([ string
$value
] )Sets whether a client disconnect should cause a script to be aborted.
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
Parameters
Return ValuesReturns the previous setting, as an integer. Examples
Example #1 A ignore_user_abort example
<?php 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
|