Net_NNTP_Realtime::getBodyRaw() -- Fetch the body of an article from the NNTP-server Описание
Returns the whole body of an article from the currently selected newsgroup
Возвращаемое значение
string/array - If message exists the body
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
Эта функция не должна вызываться статически. Замечание:
getBody() makes no converting of the body content
to any character set. You get the content 'as is'.
ПримерПример 34-1. Using getBodyRaw()
<?php
...
$body = $nntp->getBodyRaw($msgId);
if( PEAR::isError($body)) {
// handle error
} else {
// success - print body
echo $body;
}
?>
|
|
|