By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,108 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,108 IT Pros & Developers. It's quick & easy.

PHP to read nntp protocol (usenet, newsgroups)

P: n/a
Hello to everybody!

Does someone know a very simple php script (or class) to read nntp
protocol (for usenet).

I only need to read newsgroups and save them to a mysql table.

Thanks to everybody.
Jul 11 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
b.buz wrote:
Hello to everybody!

Does someone know a very simple php script (or class) to read nntp
protocol (for usenet).

I only need to read newsgroups and save them to a mysql table.

Thanks to everybody.
Ohh. that is far from trivial.

I'd have a look at installing something like an INN server or at least
ploughing through the source.
Its not too bad to craft code to drag down an article, but the process
of checking whether you already have it, and browsing what is on your
NNTP server, is not simple.
Jul 11 '08 #2

P: n/a
b.buz wrote:
Does someone know a very simple php script (or class) to read nntp
protocol (for usenet).
I only need to read newsgroups and save them to a mysql table.
Dont reinvent things already available:
the standard php imap extension (usually used for emails) is perfectly
capabale of "talking" nntp. Use it.
Storing things in mysql is apart from talking the protocol.

arkascha
Jul 11 '08 #3

P: n/a
arkascha ha scritto:
b.buz wrote:
>Does someone know a very simple php script (or class) to read nntp
protocol (for usenet).
I only need to read newsgroups and save them to a mysql table.

Dont reinvent things already available:
the standard php imap extension (usually used for emails) is perfectly
capabale of "talking" nntp. Use it.
Storing things in mysql is apart from talking the protocol.

arkascha
do you know also a news server that I can use?

thanks!
Jul 11 '08 #4

P: n/a

"b.buz" <b.***@email.itwrote in message
news:40**********************************@b1g2000h sg.googlegroups.com...
Hello to everybody!

Does someone know a very simple php script (or class) to read nntp
protocol (for usenet).

I only need to read newsgroups and save them to a mysql table.

Thanks to everybody.
http://mynewsgroups.sourceforge.net/

I saw the script but too far form my understanding.. But code worth
reading...
Jul 11 '08 #5

P: n/a

"The Natural Philosopher" <a@b.cwrote in message
news:12****************@proxy01.news.clara.net...
b.buz wrote:
>Hello to everybody!

Does someone know a very simple php script (or class) to read nntp
protocol (for usenet).

I only need to read newsgroups and save them to a mysql table.

Thanks to everybody.

Ohh. that is far from trivial.
actually, it's quite simple! there are very few return codes defined in the
rfc. i was able to make one in another language in about 4
hours...creation/testing/implementation.
I'd have a look at installing something like an INN server or at least
ploughing through the source.
no need. just read the nntp rfc and enable socket communication in the php
ini. he only needs to know how to request messages - getting all, specific,
or a block.
Its not too bad to craft code to drag down an article, but the process of
checking whether you already have it, and browsing what is on your NNTP
server, is not simple.
the checking is *quite* easy and is almost layed out for you in pseudo code
in the rfc.
Jul 11 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.