Professional Web Applications Themes

Get list of Newsgroups from server using PHP - PHP Development

I am trying to write a PHP script that will download all of the available newsgroups from a server and write them into a MySQL database. I have tried a few different things but cannot figure out even how to download the list. If anyone can help it would be appreciated. Thanks, Travis...

  1. #1

    Default Get list of Newsgroups from server using PHP

    I am trying to write a PHP script that will download all of the available
    newsgroups from a server and write them into a MySQL database. I have tried
    a few different things but cannot figure out even how to download the list.
    If anyone can help it would be appreciated.

    Thanks,
    Travis


    Travis McCarter Guest

  2. #2

    Default Re: Get list of Newsgroups from server using PHP

    "Travis McCarter" <travismsunrisenetwork.net> wrote in message
    news:3f64c6f6$1_9athenanews.com...
    > I am trying to write a PHP script that will download all of the available
    > newsgroups from a server and write them into a MySQL database. I have
    tried
    > a few different things but cannot figure out even how to download the
    list.
    > If anyone can help it would be appreciated.
    While there might be a class already written to do this here is how I would
    handle it. Basically NNTP is done over a plain-text unencrypted connection.
    That means technically you could telnet to your news server and read your
    groups that way if you wanted.

    Open a socket to port 119 on the news server (I think that's the NNTP port)
    and issue the "LIST" command. Stuff all of the output in an array and then
    stuff that into your MySQL database. You might need to p each listing as
    it might return something like group.name number_of_messages. But that
    shouldn't be a big deal.

    Anthony


    Extended Partition Guest

Similar Threads

  1. Getting a list of newsgroups with PHP
    By la_haine in forum PHP Development
    Replies: 0
    Last Post: October 1st, 04:36 PM
  2. Getting list of newsgroups via php
    By Travis McCarter in forum PHP Development
    Replies: 5
    Last Post: September 15th, 10:35 AM
  3. NFS Server access list
    By Subhodini Fernandes in forum Sun Solaris
    Replies: 10
    Last Post: August 4th, 11:48 PM
  4. list server problem
    By Andu in forum PHP Development
    Replies: 6
    Last Post: July 21st, 01:38 PM
  5. [PHP] list server problem
    By Curt Zirzow in forum PHP Development
    Replies: 0
    Last Post: July 20th, 07:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139