LarskoOrg : usenet

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Usenet

Those scripts allow you to mirror a Newsgroup in an SQL database. The development database was Postgresql, but it uses dbx and should therefore be able to work with other database systems, too. Furthermore, a frontend is provided. You can see a live version at http://www.jumpingcholla.com/archive/?.

  Attachment Size Date Added
      usenet.tar.gz   26.13 KB   6/27/2006 7:51 pm
 



CategoryCode
CategoryPHP

HomePage » CodePage » PHPCode » usenet
 Comments [Hide comments/form]
HI.
I get this error :
You have an error in your SQL syntax near '"3b.test_posts" where date >= 'Mon, 31 Jul 2006 01:45:46 +0200'' at line 2


why..
best regard
joe
-- 0x573137f7.vjnxx4.adsl-dhcp.tele.dk (2006-07-31 02:25:17)
What database are you using? It seems that it doesn't like the table name in double quotes. Does it work with single quotes?
-- MetalHead (2006-07-31 20:27:08)
Hi metalhead.
I am using phpMyAdmin and you can see it here :
http://www.44safe.com/news/

"Does it work with single quotes?"
I dont now that you mean.

My config_imap.php looks like this
<?php

/* the newsserver you want to connect to */
$newsserver = "http://news.readfreenews.net";

/* the newsserver port */
$port = 119;

/* the groups you want to get */
$newsgroups[] = "3b.test";

And in the config_sql.php,i have thoose the $dbtype = "mysql";

best regard
Joe
( sorry..bad english..iàm from denmark
-- 0x5735d4c4.vjnxx4.adsl-dhcp.tele.dk (2006-07-31 23:02:19)
I was referring to the quotes ("") around the name of the database table. Could you please send me an email, I think it's better to continue our conversation that way. Thanks.
-- MetalHead (2006-08-01 09:29:06)
Hi,

Did you ever manage to get it to work with mySql? I've done a lot of hacking and so far haven't gotton it to work.

Now when it executes imap_search it takes about 20 mins to complete, and then fails on an sql syntax error. Surely the 20 mins delay isn't right.... it even did this when I changed it to search for messages on a set date. Also, because of the delay I haven't been able to fix all the sql errors - I simply can't wait 20 mins to test each change :)

Thanks,
Dave.
-- 217.205.218.246 (2006-12-05 10:45:42)
If you're using a slow newsserver, 20 minutes isn't unreasonable. If you drop me an email with the error message, I'll try to help you.
-- MetalHead (2006-12-05 11:54:51)
OK, im having this issue as well, with mysql db. issue is
1. doesnt like double or single quotes
2. doesnt like "." in the table name.

Somehow we have to setup some sort of alias for the DB. Ill see what I can do by inserting a script to suck out all the periods when it deals with mysql.
-- user-1087r65.cable.mindspring.com (2007-01-27 14:30:28)
Valid XHTML 1.0 Transitional? :: Valid CSS? :: Powered by Wikka Wakka Wiki 1.1.6.2?
Page was generated in 0.0183 seconds