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!"
        
...
    }
}
?>
Net_NNTP::getOverviewFormat() (Previous) Net_NNTP::last() (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.