require_once 'Net/NNTP/Client.php';
string Net_NNTP_Client::getHeaderRaw (string $article, boolean $implode = false)
string Net_NNTP_Client::getHeaderRaw
Returns the whole header of an article in the currently selected newsgroup
string $article - article number or Message-ID of the article to fetch
boolean $implode - Determines if the resulting array is to be imploded into a string.
array/string - If message exists the header 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_Client::getHeader() , Net_NNTP_Client::getArticleRaw() , Net_NNTP_Client::getBodyRaw()
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); }