boolean Net_NNTP::isConnected (
)
Returns the status of the connection
boolean
- TRUE, if connected
This function can not be called statically.
Using isConnected()
<?php
...
if(PEAR::isError($response)) {
// something goes wrong, check if we are still connected
if($nntp->isConnected()) {
echo "disconnected from newsserver!"
...
}
}
?>