note 55053 added to ref.pspell
| From: | Seigo | Date: | Sat, 23 Jul 2005 21:12:52 +0000 |
| Subject: | note 55053 added to ref.pspell | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92348@lists.php.net to get a copy of this message | ||
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!
----
Manual Page -- http://www.php.net/manual/en/ref.pspell.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55053
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55053&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55053&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55053&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55053&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55053&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55053&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55053&report=yes
Search -- http://master.php.net/manage/user-notes.php