Set to false (default) - disconnecting from the client terminates script execution:
<?phpignore_user_abort();?>The output of the above code is as follows:
0The ignore_user_abort() function sets whether disconnecting from the remote client will terminate the execution of the script.
Tip: You can call this function without parameters to return the current settings.
ignore_user_abort( setting )
parameter | describe |
---|---|
setting | Optional. If set to TRUE, disconnection from the user is ignored (the script will continue running). By default it is set to FALSE, and disconnecting from the client will cause the script to stop running. |
Return value: | Returns the previous value set by user-abort (a Boolean value). |
---|---|
PHP version: | 4+ |