|
|
 |
XCV. Pspell Functions
These functions allow you to check the spelling of a word and offer
suggestions.
If you have the libraries needed add the
--with-pspell[=dir] option
when compiling PHP.
Note to Win32 Users:
win32 support is available only in PHP 4.3.3 and later versions.
Also, you must have aspell 0.50 or newer installed.
In order to enable this module under Windows, you must copy
aspell-15.dll from the bin folder
of your aspell installation to a folder where PHP will be able to find it.
C:\PHP or the SYSTEM32 folder of
your windows machine (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) are good choices.
由于这些常量是由该扩展模块定义的,因此只有在该扩展模块被编译到 PHP 中,或者在运行时被动态加载后,这些常量才有效。
add a note
User Contributed Notes
Pspell Functions
csnyder at chxo dot com
11-Oct-2002 03:37
As an alternative to mucking about with the compiled-in aspell/pspell
functions, which only check word by word, one could write a script that
calls aspell as a shell exec to check a whole block of text:
http://chxo.com/scripts/spellcheck.php (there
is a view-source option)
Not sure about Linux or Windows, but
installing aspell on FreeBSD was trivially easy from the ports collection.
No doubt such a script could be easily modified to use ispell instead if
you'd rather.
| |