Re[2]: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Latex Master

Hello andy,

  Well i do work on the same project. Now i got little lost with
  headers. If anyone can help me I'll be glad. as for all othe
  issues like updating databases they are solved :) With now cron
  job :)
  
Monday, July 15, 2002, 7:27:19 PM, you wrote:

>> It would be relatively straight-forward to have a PHP script run
a> periodically,
>> read from an NNTP server ..

a> ok sounds logical. Don't have any experiance on doing anything nntp related
a> in php.

a> There are some questions I am wondering about:

a> - do I have to compile php with a special flag to do this?
a> - how is it possible to run a php script periodicly?
a> - can you mak a short example how to read from a nntp server?

a> Thanx for your help,

a> Andy



a> "Stuart Dallas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
a> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote:
>> > On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
>> >> Has anybody an idea how they do this.
>>
>> It would be relatively straight-forward to have a PHP script run
a> periodically,
>> read from an NNTP server and add new posts into the forum database. This
a> is how
>> I would guess that they do it.
>>
>> --
>> Stuart
>>






-- 
Best regards,
 Latexmailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread andy

> It would be relatively straight-forward to have a PHP script run
periodically,
> read from an NNTP server ..

ok sounds logical. Don't have any experiance on doing anything nntp related
in php.

There are some questions I am wondering about:

- do I have to compile php with a special flag to do this?
- how is it possible to run a php script periodicly?
- can you mak a short example how to read from a nntp server?

Thanx for your help,

Andy



"Stuart Dallas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote:
> > On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
> >> Has anybody an idea how they do this.
>
> It would be relatively straight-forward to have a PHP script run
periodically,
> read from an NNTP server and add new posts into the forum database. This
is how
> I would guess that they do it.
>
> --
> Stuart
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Peter J. Schoenster

On 15 Jul 2002 at 14:55, Andy wrote:

> I just found a site where they have integrated a usenet forum into
> their own forum. I am wondering how this is technicaly done? The
> postings seem to be pretty up to date ( I did compare them with the
> usenet ones) Here is the link:

> Has anybody an idea how they do this. I think the forum software is
> phpbb. But they do not provide such a function as far as I know. All
> the data inside phpbb comes out of a db usually. How is this done with
> copyrights anyway?

Think about the datamodel for a usenet post. Each has a unique id and from there you 
are good to go. 

http://www.workbrazil.com/admin/kb.php

That's a copy of a site I'm working on. I happen to use a Perl script that is run by 
cron and connects to a few newsgroups and uses filters to 
select messages (essentially email) and store them in a mysql table. That script could 
easily be written in PHP I guess.  So you get the 
message and you re-arrange to fit the datamodel of your database and insert it.

About the copyrights. I looked into this a bit and I'm not lawyer but I found nothing 
that said what I was doing would be wrong. I certainly reject 
any copyrighted material which is often posted but all that guy seems to be doing is 
to be reposting. In my case I'm actually culling  data to 
repurpose and if I use chunks of posts from someone I give them credit.

Here is the table I use to store data. I did this quickly and need to pare this down 
to the essentials. 

CREATE TABLE news (
  Content_Disposition varchar(20) default NULL,
  Content_Transfer_Encoding varchar(20) default NULL,
  Content_Type varchar(50) default NULL,
  Reply_To varchar(50) default NULL,
  Subject varchar(100) default NULL,
  X_Accept_Language varchar(20) default NULL,
  X_Admin varchar(20) default NULL,
  X_Complaints_To varchar(20) default NULL,
  X_MSMail_Priority varchar(20) default NULL,
  X_Mailer varchar(20) default NULL,
  X_MimeOLE varchar(20) default NULL,
  X_Newsreader varchar(20) default NULL,
  X_No_Archive varchar(20) default NULL,
  X_Priority varchar(20) default NULL,
  X_Received_Date varchar(20) default NULL,
  X_Server_Date varchar(20) default NULL,
  X_Trace varchar(20) default NULL,
  X_UserInfo1 varchar(20) default NULL,
  Xref varchar(20) default NULL,
  MIME_Version varchar(20) default NULL,
  Message_ID varchar(20) NOT NULL default '',
  NNTP_Posting_Date varchar(20) default NULL,
  NNTP_Posting_Host varchar(20) default NULL,
  XFrom varchar(200) default NULL,
  Born varchar(20) default NULL,
  Distribution varchar(20) default NULL,
  XLines varchar(20) default NULL,
  Newsgroups varchar(50) default NULL,
  Organization varchar(20) default NULL,
  XReferences varchar(100) default NULL,
  body text,
  article_id int(11) default NULL,
  mysql_born date default NULL,
  tz char(3) default NULL,
  hour timestamp(14) NOT NULL,
  Name varchar(50) default NULL,
  this_group varchar(50) default NULL,
  visibility tinyint(4) default NULL,
  editor int(11) default NULL,
  PRIMARY KEY  (Message_ID)
) TYPE=MyISAM;


Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Stuart Dallas

On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote:
> On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
>> Has anybody an idea how they do this.

It would be relatively straight-forward to have a PHP script run periodically,
read from an NNTP server and add new posts into the forum database. This is how
I would guess that they do it.

-- 
Stuart


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Dan Vande More

I don't know, but it sure looks nice!
Dan

-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 6:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] integrating usenet into http? how is this done???


Hi guys,

I just found a site where they have integrated a usenet forum into their own
forum. I am wondering how this is technicaly done? The postings seem to be
pretty up to date ( I did compare them with the usenet ones)
Here is the link:
http://britishexpats.com/forums/forumdisplay.php?forumid=43&s=e80f5f41207018
c5dd5751801faf1037

Has anybody an idea how they do this. I think the forum software is phpbb.
But they do not provide such a function as far as I know. All the data
inside phpbb comes out of a db usually. How is this done with copyrights
anyway?

Andy




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Stuart Dallas

On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
> I just found a site where they have integrated a usenet forum into their own
> forum. I am wondering how this is technicaly done? The postings seem to be
> pretty up to date ( I did compare them with the usenet ones)
> Here is the link:
> http://britishexpats.com/forums/forumdisplay.php?forumid=43&s=e80f5f41207018
> c5dd5751801faf1037

> Has anybody an idea how they do this. I think the forum software is phpbb.
> But they do not provide such a function as far as I know. All the data
> inside phpbb comes out of a db usually. How is this done with copyrights
> anyway?

It's using vBulletin (www.vbulletin.com - the clue is in the page footer of the
url you specified), not phpbb. There are a number of hacks for vBulletin that
allow this type of functionality.

http://www.vbulletin.org/forum/search.php?s=&action=showresults&searchid=146348&sortby=lastpost&sortorder=descending

As for how legal it is, I'm not sure, IANAL.

-- 
Stuart


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Andy

Hi guys,

I just found a site where they have integrated a usenet forum into their own
forum. I am wondering how this is technicaly done? The postings seem to be
pretty up to date ( I did compare them with the usenet ones)
Here is the link:
http://britishexpats.com/forums/forumdisplay.php?forumid=43&s=e80f5f41207018
c5dd5751801faf1037

Has anybody an idea how they do this. I think the forum software is phpbb.
But they do not provide such a function as far as I know. All the data
inside phpbb comes out of a db usually. How is this done with copyrights
anyway?

Andy




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php