PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'Net/NNTP.php';
boolean Net_NNTP::isConnected ()
boolean Net_NNTP::isConnected
Returns the status of the connection
boolean - TRUE, if connected
This function can not be called statically.
Example 47-1. Using isConnected()
... if(PEAR::isError($response)) { // something goes wrong, check if we are still connected if($nntp->isConnected()) { echo "disconnected from newsserver!" ... } }