473,652 Members | 3,173 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 2066
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.it wrote in message
news:40******** *************** ***********@b1g 2000hsg.googleg roups.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******** ********@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.
Jul 11 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2061
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
1594
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 migrating my site later. TIA
75
5330
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 spaghetti.
7
6437
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, received.Length); string textToAdd = Encoding.ASCII.GetString(received, 0, readBytes); myCompleteMessage = String.Concat(myCompleteMessage, textToAdd); }
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 c:\inetpub\wwwroot and rebooted before reinstalling. I created a new virtual directory from within IIS (e.g. MyWebTest). Then I tried to create a new Visual C# ASP.NET Web Application pointing to the location http://localhost/MyWebTest. I get...
7
2989
by: Shimon Sim | last post by:
I have a custom composite control I have following property
9
2680
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 from my web site to be readable via a NNTP interface. So, when the client connects to my server, a hierarchy might look like this: sandman.forum.gaming sandman.forum.media sandman.articles.weblogs
5
3210
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 helpfull document on how to d.l binary files from the newsgroups server Thanks
1
1957
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 from the newsgroups are corrupt most of the time, it's possible to decode the files with yenc and most of the picture is fine but there's some bugs on the picture. I tested the files with commerical NNTP program and the files are fine.
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8703
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8467
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2703
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 we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.