Koozali.org: home of the SME Server

pspell (php) included in 5.6-help

sam

pspell (php) included in 5.6-help
« on: April 13, 2003, 05:05:49 AM »
I've noticed that a phpinfo now has pspell included in sme5.6 ('--with-pspell' ).
Does this mean its already 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