PHP  
downloads | documentation | faq | getting help | mailing lists | | php.net sites | links 
search for in the  
previousprinter_writepspell_add_to_personalnext
Last updated: Tue, 03 Sep 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | German | Hungarian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Swedish | Turkish

LXXXIV. Pspell Functions

Introduzione

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

Requisiti

To compile PHP with pspell support, you need the aspell and pspell libraries, available from and respectively.

Istallazione

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

Configurazione Runtime

Questa estensione non definisce alcuna direttiva di configurazione

Resource Type

Questa estensione non definisce alcun tipo di risorsa.

Costanti Predefinite

Queste costanti sono definite da questa estensione e sono disponibili solo se l'estensione � stata compilata nel PHP o se � stata caricata dinamicamente a runtime.

PSPELL_FAST (integer)

PSPELL_NORMAL (integer)

PSPELL_BAD_SPELLERS (integer)

PSPELL_RUN_TOGETHER (integer)

Sommario
pspell_add_to_personal -- Add the word to a personal wordlist
pspell_add_to_session -- Add the word to the wordlist in the current session
pspell_check -- Check a word
pspell_clear_session -- Clear the current session
pspell_config_create -- Create a config used to open a dictionary
pspell_config_ignore -- Ignore words less than N characters long
pspell_config_mode -- Change the mode number of suggestions returned
pspell_config_personal -- Set a file that contains personal wordlist
pspell_config_repl -- Set a file that contains replacement pairs
pspell_config_runtogether -- Consider run-together words as valid compounds
pspell_config_save_repl -- Determine whether to save a replacement pairs list along with the wordlist
pspell_new_config -- Load a new dictionary with settings based on a given config
pspell_new_personal -- Load a new dictionary with personal wordlist
pspell_new -- Load a new dictionary
pspell_save_wordlist -- Save the personal wordlist to a file
pspell_store_replacement -- Store a replacement pair for a word
pspell_suggest -- Suggest spellings of a word
User Contributed Notes
Pspell Functions
add a note about notes
[email protected]
12-Dec-2001 11:16

If you can't get ASPELL, PSPELL and PHP configured properly (like errors in the make of PHP) then the author of ASPELL has broken source backward compatibility.

The best remedy is to grab an older version of ASPELL and PSPELL.

--Tait

[email protected]
21-Jun-2002 12:00

I origonally compiled Pspell/Aspell/Php and got the �Unable to load �aspell� module.� error. Here is what I did to get a fully working pspell.

Configuration
RedHat 7.2 (installed without pspell/aspell)
php4.2.1 (DSO), pspell .12.2, aspell .33.7.1, Apache 1.3.24 (mod_ssl)

cd aspell
# I did not specify a prefix
./configure
make
make install

cd pspell
# I did not specify a prefix
./configure
make
cd modules
./add-modules
cd ..
make
make install
# For ldconfig /usr/local/lib was not in it�s path, so I had to edit /etc/ld.so.conf and add: /usr/local/lib
ldconfig -v
cd ..

cd php
./configure --with-pspell=/usr/local \
--other config options etc
make
make install

add a note about notes
previousprinter_writepspell_add_to_personalnext
Last updated: Tue, 03 Sep 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Fri Sep 6 19:51:45 2002 CEST