Net_NNTP::getHeaders() -- fetch message headers
Beschrijving
Returns all avaible header lines of a specified message in the
current selected newsgroup
| Waarschuwing |
Deze functie is
deprecated. Dat betekend dat toekomstige versies van dit pakket het mischien niet meer ondersteunen. |
Consider this method deprecated and subject
to changes - use
Net_NNTP::getHeaderRaw() instead.
Return waarde
string - If message exists the headers
as string or a PEAR_Error, if fail.
Note
Deze functie kan niet statisch worden aangeroepen.
Voorbeeld
Voorbeeld 50-1. Using getHeaders()
<?php
...
$headers = $nntp->getHeaders($msgId);
if( PEAR::isError($headers)) {
// handle error
} else {
// success - split the string into a array
$headersArray = explode( "\n", $headers);
}
?>
|
|