Net_NNTP::getHeaders() -- fetch message headers
Description
Returns all avaible header lines of a specified message in the
current selected newsgroup
| Avertissement |
Cette fonction est obsolète.
Cela signifie qu'elle pourra ne plus être supportée dans les prochaines versions du
module. |
Consider this method deprecated and subject
to changes - use
Net_NNTP::getHeaderRaw() instead.
Valeur retournée
string - If message exists the headers
as string or a PEAR_Error, if fail.
Note
Cette fonction ne peut pas être appelée de façon statique.
Exemple
Exemple 54-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);
}
?>
|
|