Forum und email

Pspell Functions

簡介

These functions allow you to check the spelling of a word and offer suggestions.

需求

To compile PHP with pspell support, you need the aspell library, available from » https://aspell.sourceforge.net/.

安裝

If you have the libraries needed add the --with-pspell[=dir] option when compiling PHP.

Note: Note to Win32 Users 需要有DLL檔案存在於PATH的Windows系統上,來使此擴充功能運作。參見FAQ主題為"如何增加PHP目錄至Windows上的PATH環境變數",可獲得如何完成這些步驟的資訊。雖然從PHP資料夾複製DLL檔案至Windows系統目錄也可行(因為PATH預設包含系統目錄),不過不建議這樣做。此擴充功能需要以下檔案存在PATH中: aspell-15.dll from the bin folder of the aspell installation.
Win32 support is available only in PHP 4.3.3 and later versions. Also, at least aspell version 0.50 is required.

執行時期設定

本擴充功能在 php.ini 中未定義任何設定選項。

資源類型

本擴充功能未定義任何資源類型。

預設常數

以下常數由擴充功能定義,因此只有在擴充功能被編譯到 PHP 中,或者在執行時被動態載入後才有效。

PSPELL_FAST (integer)
PSPELL_NORMAL (integer)
PSPELL_BAD_SPELLERS (integer)
PSPELL_RUN_TOGETHER (integer)

Table of Contents