Net_NNTP_Realtime::getHeaderRaw() -- fetch message header Описание
Returns the whole header of an article in the currently selected newsgroup
Возвращаемое значение
array/string - If message exists the header
or a PEAR_Error, if fail.
Throws
Таблица 34-1. Возможные значения PEAR_Error Error code | Error message | Reason | Solution |
---|
NULL |
Different error messages
|
The messages are directly passed from the news server, in the
most cases caused by calling a non existing article
| |
Заметка
since 0.3
Эта функция не должна вызываться статически. ПримерПример 34-1. Using getHeaderRaw()
<?php
...
$headers = $nntp->getHeaderRaw($msgId);
if( PEAR::isError($headers)) {
// handle error
} else {
// success - split the string into a array
$headersArray = explode( "\n", $headers);
}
?>
|
|
|