note 55053 rejected from ref.pspell by mazzanet
| From: | mazzanet@php.net | Date: | Sat, 23 Jul 2005 21:50:59 +0000 |
| Subject: | note 55053 rejected from ref.pspell by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92352@lists.php.net to get a copy of this message | ||
Note Submitter: Seigo <seigo dot ua at gmail dot com>
----
I installed pspell (Aspell-0-50-3-3-Setup.exe) for windows (IIS6 and PHP as CGI) and installed
english dictionary (Aspell-en-0.50-2-3.exe). Then shared dll in system32 folder and uncommented
php_pspell.dll extension in php.ini.
After I tried the sample code:
<?php
$pspell_link = pspell_new("en");
if (!pspell_check($pspell_link, "testt")) {
$suggestions = pspell_suggest($pspell_link, "testt");
foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion<br />";
}
}
?>
but browser gave me the following error:
"This application has requested the Runtime to terminate it in an unusual way. Please contact
the application's support team for more information. Unhandled Error: C:\Program
Files\Aspell\dict/en-only.rws: The file "C:\Program Files\Aspell\data/iso8859-1.dat" is
not in the proper format."
Thanks for any help!