Net_NNTP::isConnected()

Net_NNTP::isConnected() – check connection status

Synopsis

require_once 'Net/NNTP.php';

boolean Net_NNTP::isConnected ( )

Description

Returns the status of the connection

Return value

boolean - TRUE, if connected

Note

This function can not be called statically.

Example

Using isConnected()

<?php
...
if(
PEAR::isError($response)) {
    
// something goes wrong, check if we are still connected
    
if($nntp->isConnected()) {
        echo 
"disconnected from newsserver!"
        
...
    }
}
?>