It may be great to not only generate a list of single words, but also a list of phrases of two- and three-words, of course after first filtering "common" words such as prepositions, numbers, symbols, pronouns, and such. An additional thing you could do is weigh each keyword (be it a single word or a phrase), based on some algorithm, for example:

w_ik = (-log(N_k/N))(f_k)(w_f)

(Y. Bao, S. Aoyama, X. Du, 2002)

where w_ik is the weight of keyword k in post i, N_k is the number of posts containing the keyword k, N is the number of posts in total, f_k is the frequency of keyword k in post i, and w_f denotes the importance of a keyword (perhaps two-word phrases are more important than single-word keywords).

Of course, with the above weighing, you may need to redefine how you "match" for keywords. smile

Smartmonkey wrote:

any ideas about the problems with deleting files?

Deleting files did not work because the uploader script assumes register_globals is enabled. There's two alternative solutions:

1. Enable register_globals in .htaccess (http://us2.php.net/manual/en/ini.core.p … er-globals). I discourage this. Instead, use the other alternative.

2. In uploads.php, after the line that says (about line 184):

 elseif($_POST['act']=='Delete') {

add:

$delfile = $_POST['delfile'];

I believe that one line should provide a temporary solution, until a newer version of the upload script could be coded smile.

I found the error. The copy line that reads:

@copy($file, './uploaded/'.$file_name) or error('Could not copy file to server', __FILE__, __LINE__, $db->error());

should read the following, instead:

@copy($temp_name, './uploaded/'.$file_name) or error('Could not copy file to server', __FILE__, __LINE__, $db->error());

After that change, the upload works smile

Yeah, I got the same error too, Loiso. I have the file permissions set correctly (the user that runs Apache can read/write that directory).

boneheade wrote:
TheBaker wrote:

It's all working fine, but when I edit a post without a poll, I get these errors:

Notice: Undefined index: question in /xxxxx/include/punpoll/edit_save.php on line 6

Notice: Undefined index: answers in /xxxxx/include/punpoll/edit_save.php on line 9

It doesn't stop anything working, it's just annoying. Any ideas how I could stop them from appearing?

I get the same errors yet everything works fine. I just put an @ in the edit.php to stop seeing the errors. Like so: @require PUN_ROOT.'include/punpoll/edit_form.php';

Or just change your php.ini to have error reporting set to:

E_ALL & ~E_NOTICE

6

(18 replies, posted in PunBB 1.2 bug reports)

I had problems compiling PHP 5.0.2. Why not try upgrading to PHP 5.0.3 instead? My installation of PunBB works perfectly fine on the latter version.