Net_NNTP::getOverview() – fetch a number of message headers


require_once 'Net/NNTP.php';

array Net_NNTP::getOverview ( string $first , string $last )


Returns all message headers in a certain range of the current selected newsgroup


  • $first - start message id, start of the range

  • $last - last message id, end of the range

Return value

array - a nested array indicated by the message id of the article, every entry contains the header as array

[message_id][headername] = headercontent


This function can not be called statically.

Be careful with choosing the range. It could requires some time to get a huge number of message headers.


Using getOverview()

$ret $nntp->connect("");
PEAR::isError($ret)) {
// handle error
} else {
// print the last 10 messages
$data $nntp->selectGroup("");
$msgs $nntp->getOverview$data['last'] - 10$data[last]);

$msgs as $msg) {
// print subjects
echo $msg['Subject'].'<br>';
fetch message headers (Previous) fetch the name of message headers (Next)
Last updated: Tue, 13 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.