Net_NNTP::getBody()Net_NNTP::getBody() -- fetch the body of an article Description
Returns the whole body of an article in the current selected newsgroup
from the webserver
| 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::getBodyRaw() instead.
Valeur retournée
string - If message exists the body as
string or a PEAR_Error, if fail.
NoteCette fonction ne peut pas être appelée de façon statique. Note :
getBody() makes no converting of the body content
to any character set. You get the content 'as is'.
ExempleExemple 48-1. Using getBody() ...
$body = $nntp->getBody($msgId);
if( PEAR::isError($body)) {
// handle error
} else {
// success - print body
echo $body;
} |
|
Manuel PEAR pour PHP-Nuke © www.stefvar.com |