|
Net_NNTP_Client::getHeaderRaw()Net_NNTP_Client::getHeaderRaw() -- fetch message header Description
Returns the whole header of an article in the currently selected newsgroup
Valeur retournée
array/string - If message exists the header
or a PEAR_Error, if fail.
Valeurs renvoyées
Tableau 48-1. Valeurs PEAR_Error possibles | Error code | Error message | Reason | Solution |
|---|
| NULL |
Different error messages
|
The messages are directly passed from the news server, in the
most cases caused by calling a non existing article
| |
Note
since 0.3
Cette fonction ne peut pas être appelée de façon statique. ExempleExemple 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);
} |
|
Manuel PEAR pour PHP-Nuke © www.stefvar.com |
|
|
|
|
|