473,505 Members | 14,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Jul 11 '08 #1
5 2057
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
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
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

"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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2052
by: Arlequín | last post by:
Hello, there! Is there any possibility to access a PHP newsgroup though a news client (i.e. Mozilla, Pan), using the NNTP protocol? Thanks a lot
6
1585
by: Mauricio Freitas [MVP] | last post by:
Hello Does anyone know of a (good) asp script to browse/post nntp (usenet/newsgroups)? I know there are some ASP .Net ones, but I rather have this on ASP for now since I'm still working on...
75
5274
by: Greg McIntyre | last post by:
I have a Python snippet: f = open("blah.txt", "r") while True: c = f.read(1) if c == '': break # EOF # ... work on c Is some way to make this code more compact and simple? It's a bit...
7
6422
by: Mike | last post by:
Hi, I have an iteration to retrieve a number of messages from a server. Within this iteration, I am using the following code: do { readBytes = base.GetStream().Read(received, 0,...
7
960
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
7
2972
by: Shimon Sim | last post by:
I have a custom composite control I have following property
9
2666
by: Sandman | last post by:
Ok, I do NOT want to *connect* to a NNTP server from PHP, I want to - from a NNTP client - connect to a NNTP server that is powered by PHP. Specifically, I want articles, forum posts and such...
5
3205
by: BiT | last post by:
Hello i need to add to my program option to d.l binary files from newsgroups (nntp Protocol) i tried to search the net but didn't find anything helpfull i'm looking for sample code or link to...
1
1949
by: nondos | last post by:
Hello I coded vb.net 2005 application to d.l binary pictures file from news network server and then decode the file with yEnc and show the pictures. the code work fine, but the files i d.l...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.