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