ignore_user_abortSet whether a client disconnect should abort script execution
&reftitle.description;
intignore_user_abortboolvalue
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
value is set to &true;
&reftitle.parameters;
value
If set, this function will set the ignore_user_abort ini setting
to the given value. If not, this function will
only return the previous setting without changing it.
&reftitle.returnvalues;
Returns the previous setting, as an integer.
&reftitle.examples;
A ignore_user_abort example
]]>
&reftitle.notes;
PHP 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.
&reftitle.seealso;
connection_abortedconnection_status
Connection Handling
for a complete description of connection handling in PHP.