require_once 'Net/NNTP.php';
string Net_NNTP::getHeaderRaw (string $articleId)
string Net_NNTP::getHeaderRaw
Returns all avaible header lines of a specified message in the current selected newsgroup
string $articleId - Message-ID or Message number
string - If message exists the header as string or a PEAR_Error, if fail.
Table 48-1. Possible PEAR_Error values
since 0.3
This function can not be called statically.
Net_NNTP::splitHeaders() , Net_NNTP::getBodyRaw() , Net_NNTP::getOverview()
Example 48-1. Using getHeaderRaw()
... $headers = $nntp->getHeaderRaw($msgId); if( PEAR::isError($headers)) { // handle error } else { // success - split the string into a array $headersArray = explode( "\n", $headers); }