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!"
        
...
    }
}
?>
fetch the name of message headers (Previous) get highest message number (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.