PHP » GoLang |
login |
register |
about
|
GoLang ignore_user_abort
request it (402)
GoLang replacement for PHP's ignore_user_abort
[edit | history]
ignore_user_abort(PHP 4, PHP 5, PHP 7) ignore_user_abort — Set whether a client disconnect should abort script execution Description
int ignore_user_abort
([ bool
$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
|
more
Recently updated
more
Most requested
more
Last requests
|