PSPELL hell
| From: | Garth Dahlstrom | Date: | Wed, 18 Jul 2001 14:24:38 +0000 |
| Subject: | PSPELL hell | ||
| Groups: | php.dev php.general php.install | ||
| Request: | Send a blank email to php-dev+get-60219@lists.php.net to get a copy of this message | ||
I compiled pspell into PHP 4.0.6, but when
I go to execute the example I get unable to
load aspell module... aspell 0.32 is on the
box.
Help!
Output:
-------
Warning: PSPELL couldn't open the dictionary. reason: Unable to load the
"aspell" module. in /var/www/spell.php on line 2
Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 4
Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 5
Possible spelling:
Input:
------
<?php
$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] . "<br>";
}
}
?>
-Garth
---
http://www.northern.ca