Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP connection_aborted() Function

PHP connection_aborted() Function

PHP Misc Reference Manual PHP Misc Reference Manual

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 PHP Misc Reference Manual