Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: sam on April 17, 2003, 05:31:09 PM

Title: can you get spell to work (php)
Post by: sam on April 17, 2003, 05:31:09 PM
I've noticed that a phpinfo() now has pspell included in sme5.6 ('--with-pspell' ).
Does this mean its all  ready to use?
For example I've tried the pspell_suggest from the manuel:
Untitled
$pspell_link = pspell_new ("en");
if (!pspell_check ($pspell_link, "testt")) {
$suggestions = pspell_suggest ($pspell_link, "testt");

for ($i=0; $i < count ($suggestions); $i++) {
echo "Possible spelling: " . $suggestions[$i] . "
";
}
}
?>


and I get the following error:
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "english". in /home/e-smith/files/ibays/five-six/html/checkspell.php on line 5

Warning: 0 is not an PSPELL result index in /home/e-smith/files/ibays/five-six/html/checkspell.php on line 6

Warning: 0 is not an PSPELL result index in /home/e-smith/files/ibays/five-six/html/checkspell.php on line 7
Possible spelling:

Could anyone help me with this problem as I have an app (LAMP) that clients want spell checking enabled

sam
BTW Sorry to post this in 2 phorums. I haven't had any success looking for this solution elsewhere so thats why I'm giving it one last go by trying the general discussion phorum.