Click here to get back home

PHP to read nntp protocol (usenet, newsgroups)

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
PHP to read nntp protocol (usenet, newsgroups) b.buz 07-11-2008
Get Chitika Premium
Posted by b.buz on July 11, 2008, 5:17 am
Please log in for more thread options
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.

Posted by The Natural Philosopher on July 11, 2008, 5:30 am
Please log in for more thread options
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.

Posted by Barry on July 11, 2008, 2:36 pm
Please log in for more thread options

> 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.



Posted by arkascha on July 11, 2008, 5:33 am
Please log in for more thread options
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

Posted by nintesa on July 11, 2008, 9:44 am
Please log in for more thread options
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!

Similar ThreadsPosted
Usenet Beavis: This is your life[tm]! October 23, 2006, 7:07 pm
Setup Usenet groups within phpBB January 4, 2007, 5:50 pm
OT: What usenet group do MySQL users hand out in ? May 17, 2005, 5:56 pm
CURL communication protocol January 20, 2008, 8:11 am
gzopen - SSL: fatal protocol error ? July 1, 2006, 5:24 pm
"SSL: Fatal Protocol Error" with fsockopen() February 22, 2007, 8:05 pm
[OT] Why some many PHP newsgroups? May 19, 2006, 8:21 am
Re: why so many PHP newsgroups?? August 2, 2007, 5:46 pm
Error: Client does not support authentication protocol February 13, 2005, 9:30 am
About mysql reading and newsgroups July 13, 2004, 1:15 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap