I'm using imap_header to get all the headers in a newsgroup on a NNTP-server
like this
if($nntp=imap_open("{sunsite.auc.dk/nntp:119}dk.admin","",""))
{
for($i=1;$i<5;$i++)
{
$header = imap_header($nntp, $i);
echo "MESSAGE ID: " .
HTMLSpecialChars($header->message_id) . "<BR>\n";
echo "SUBJECT:<a href='visInd.php'>" .
$header->Subject . "<br>\n</a>";
echo "SENDER ADDRESS: " .
HTMLSpecialChars($header->senderaddress) . "<BR>\n";
echo "REPLY-TO: " .
HTMLSpecialChars($header->reply_toaddress) . "<BR>\n";
print("DATE: $header->date<br>\n");
echo "REFERENCES: " . HTMLSpecialChars($header->references) .
"<BR>\n";
print("XREF: " . $header->xref) . "<BR>";
}
}
But I can't get it to write the XREF on the screen. Every thing else works.
I hope that you can help me
Thanks
Shimon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]