Net_NNTP::isConnected() -- check connection status Описание
Returns the status of the connection
Возвращаемое значение
boolean - TRUE, if connected
ЗаметкаЭта функция не должна вызываться статически. ПримерПример 34-1. Using isConnected()
<?php
...
if(PEAR::isError($response)) {
// something goes wrong, check if we are still connected
if($nntp->isConnected()) {
echo "disconnected from newsserver!"
...
}
}
?>
|
|
|