Okay, I haven't done any PHP before but here is a function ported over from Perl that uses the same basic API as WWWThreads/Perl used. If you put the dictionary that came with the old perl version in the same directory you can look up words and give it a try. If no one else gets to it I'll end up hacking it in to use on the boards.
Lee
Errm I didn't attach it..coming right up