PHP to read nntp protocol (usenet, newsgroups)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • b.buz

    PHP to read nntp protocol (usenet, newsgroups)

    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.
  • The Natural Philosopher

    #2
    Re: PHP to read nntp protocol (usenet, newsgroups)

    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.

    Comment

    • arkascha

      #3
      Re: PHP to read nntp protocol (usenet, newsgroups)

      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

      Comment

      • nintesa

        #4
        Re: PHP to read nntp protocol (usenet, newsgroups)

        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!

        Comment

        • sathyashrayan

          #5
          Re: PHP to read nntp protocol (usenet, newsgroups)


          "b.buz" <b.buz@email.it wrote in message
          news:40992e07-e599-4ac8-b0e1-34d1ae1f8158@b1 g2000hsg.google groups.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.


          I saw the script but too far form my understanding.. But code worth
          reading...


          Comment

          • Barry

            #6
            Re: PHP to read nntp protocol (usenet, newsgroups)


            "The Natural Philosopher" <a@b.cwrote in message
            news:1215768717 .22804.0@proxy0 1.news.clara.ne t...
            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...creatio n/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.


            Comment

            Working...