To get the list of all newsgroups use the LIST command:
----------- FROM RFC977 (NNTP PROTOCOL)-----------
LIST
Returns a list of valid newsgroups and associated information. Each
newsgroup is sent as a line of text in the following format:
group last first p
where <group> is the name of the newsgroup, <last> is the number of
the last known article currently in that newsgroup, <first> is the
number of the first article currently in the newsgroup, and <p> is
either 'y' or 'n' indicating whether posting to this newsgroup is
allowed ('y') or prohibited ('n').
-------------------- END ------------------------
For more infos about the NNTP protocol:
http://www.faqs.org/rfcs/rfc977
HTH
"Travis McCarter" <tr*****@sunrisenetwork.net> wrote in message
news:3f********@athenanews.com...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am trying to write a PHP script that will download a list of all
the newsgroups on a news server and put them into a MySQL database.
I bought a $50 book that had some NNTP examples in it, but none of
them show how to just download the groups, not the articles. I tried
on my own for about 2 hours with no luck. If someone can point me in
the right direction to download the group list using PHP, I think I
can figure out how to write it to a database.
Thanks,
Travis
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8
iQA/AwUBP2PbWIHFTs7ILPgZEQLAjwCfd3nWCRXbo+aLWem6X6SuDE aVypwAoN17
VUlkCyCO1trp6sajVqAG/DrZ
=+jvW
-----END PGP SIGNATURE-----