Connection-Handling Constants

The following constants should be used to compare against the values returned by the connection_status() function. These constants were added in PHP 4.0.7. Prior to this version, direct comparison against the integer values returned by connection_status() was required.

Constant Name Description
CONNECTION_NORMAL The connection is in (or ended in) a normal state.
CONNECTION_ABORTED The script was aborted.
CONNECTION_TIMEOUT The script exceeded the maximum execution time.

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.