Re: extracting data out of a usenet posting
| From: | David Otton | Date: | Sun, 20 Apr 2003 00:48:39 +0000 |
| Subject: | Re: extracting data out of a usenet posting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144512@lists.php.net to get a copy of this message | ||
On Sun, 20 Apr 2003 02:41:59 +0200, you wrote:
>I am currently trying to do something a lot of people have most likeley done
>before. I am trying to read out of a usenet newsgroup and save it to a
>database.
>
>In the first step I am facing a lot of trouble extracting the data I want,
>since different user agents seem to save the message in a different way.
>Thats why my string search functions often fail.
It's not exactly clear what you're doing. Are you trying to pull data
from a news reader's internal database, or from a news server?
If it's the first, look for an export function in your newsreader (eg
"Save Messages As" in Agent).
In the second case, you need an NNTP library. Shouldn't be too hard to
find... 15 seconds with Google throws up
http://php.resourceindex.com/Complete_Scripts/Clients_and_Servers/NNTP/