PHP connection_status() Function
Example
Return the connection status:
Run Example »
Definition and Usage
The connection_status() function returns the current connection status.
Possible values that can be returned:
- 0 - CONNECTION_NORMAL - The connection is running normally
- 1 - CONNECTION_ABORTED - The connection was terminated by the user or a network error
- 2 - CONNECTION_TIMEOUT - The connection timed out
- 3 - CONNECTION_ABORTED & CONNECTION_TIMEOUT
Syntax
connection_status()
Technical Details
| Return Value: | Returns the connection status bitfield. |
|---|---|
| PHP Version: | 4+ |
PHP Misc Reference Manual