downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pspell_config_repl> <pspell_config_mode
Last updated: Fri, 14 Aug 2009

view this page in

pspell_config_personal

(PHP 4 >= 4.0.2, PHP 5)

pspell_config_personalChoisit le fichier qui contient le dictionnaire personnel

Description

bool pspell_config_personal ( int $dictionary_link , string $file )

Choisit le fichier qui contient le dictionnaire personnel. Le dictionnaire personnel sera chargé et utilisé en plus du dictionnaire standard, une fois que vous aurez appelé pspell_new_config(). Le fichier est aussi là où pspell_save_wordlist() sauvegardera le dictionnaire personnel.

pspell_config_personal() doit être appelée dans une configuration avant d'appeler pspell_new_config().

Liste de paramètres

dictionary_link

file

Le dictionnaire personnel. Si le fichier n'existe pas, il sera créé. Le fichier doit être accessible en écriture pour l'utilisateur invoquant PHP (ex. nobody).

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 pspell_config_personal()

<?php
$pspell_config 
pspell_config_create("en");
pspell_config_personal($pspell_config"/var/dictionaries/custom.pws");
$pspell_link pspell_new_config($pspell_config);
pspell_check($pspell_link"thecat");
?>

Notes

Note: Cette fonction ne marchera qu'avec pspell .11.2 et aspell .32.5 ou ultérieurs.



add a note add a note User Contributed Notes
pspell_config_personal
Anonymous
05-Feb-2009 03:49
There is no error if the file does not exists. So if you are debugging, check wheter the file really exists.

pspell_config_repl> <pspell_config_mode
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites