Net_NNTP::isConnected()
Net_NNTP::isConnected() – check connection status
Synopsis
require_once 'Net/NNTP.php';
boolean Net_NNTP::isConnected (
)
Описание
Returns the status of the connection
Return value
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!"
...
}
}
?>