From: Jan H. <hi...@wi...> - 2000-12-14 22:10:53
|
On Thu, Dec 14, 2000 at 03:47:10PM -0500, Steve Wainstead wrote: > > You can forward that to the list as an attachment, and we'll test it out. Ok. Here it is. I forgot to clean up the pre-amble of the file (it's not your latest version) but I assume that is not really a problem. Note that the DBM file 'wikilinks', as I defined it, is a very redundant datastructure, but that makes the lookups quicker (and the code uglier :-)). I also generalized InsertPage a little so I could use it also for 'wikilinks'. I am not sure if the padding that happens there, is really neccessary for 'wikilinks', but I assumed it couldn't do much harm. The RemovePage function now does not report any error whatsoever. I assume it should report something if a non-existing page is deleted. But I didn't implment that yet. I have tested the file here under RedHat 6.2 + PHP3 and RedHat 7.0 + PHP4 and both seems to work. But there are undoubtedly still some bugs, so let me know. I also have a short question. I saw that if a request is made for a non-existing page, this is still counted in wikiscore. That entry remains there until the non-existing page is explicitly deleted. It's not really wrong but it surprised me a bit that you would allow entries in a table for non-existing pages. Kind regards, --- Jan Hidders |