PHP connection_aborted() Function

PHP Misc Reference : Create a function (check_abort()) that writes a log message if a client aborts 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 aborted, otherwise it returns 0
PHP Version: 4+

❮ PHP Misc Reference