PHP connection_aborted() Function
Example
Create a function (check_abort()) that writes a log message when the client terminates the script:
Definition and Usage
The connection_aborted() function checks whether the client has disconnected.
Syntax
connection_aborted()
Technical Details
| Return Value: | Returns 1 if the connection has been terminated, otherwise 0. |
|---|---|
| PHP Version: | 4+ |
PHP Misc Reference Manual