Net_NNTP::getHeaderRaw() -- fetch message header
Description
Returns all avaible header lines of a specified message in the
current selected newsgroup
Valeur retournée
string - If message exists the header
as string or a PEAR_Error, if fail.
Note
since 0.3
Cette fonction ne peut pas être appelée de façon statique.
Exemple
Exemple 54-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);
}
?>
|
|