П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 5862 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 8042 раз(а).

Учебник HTML.
Просмотров 4755 раз(а).

Руководство по PHP5.
Просмотров 1759 раз(а).

Хостинг через призму DNS.
Просмотров 6715 раз(а).

Подборка текстов стандартных документов.
Просмотров 57410 раз(а).

Учебник PHP - Самоучитель
Просмотров 5030 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 11122 раз(а).

Внешние атаки...
Просмотров 6819 раз(а).

Учебник PHP.
Просмотров 4051 раз(а).

SSI в примерах.
Просмотров 1088 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

pspell_store_replacement

(PHP 4 >= 4.0.2, PHP 5)

pspell_store_replacement -- Store a replacement pair for a word

Description

bool pspell_store_replacement ( int dictionary_link, string misspelled, string correct )

pspell_store_replacement() stores a replacement pair for a word, so that replacement can be returned by pspell_suggest() later. In order to be able to take advantage of this function, you have to use pspell_new_personal() to open the dictionary. In order to permanently save the replacement pair, you have to use pspell_config_personal() and pspell_config_repl() to set the path where to save your custom wordlists, and then use pspell_save_wordlist() for the changes to be written to disk. Please, note that this function will not work unless you have pspell .11.2 and aspell .32.5 or later.

Пример 1. pspell_store_replacement()

<?php
$pspell_config
= pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl");
$pspell_link = pspell_new_config($pspell_config);

pspell_store_replacement($pspell_link, $misspelled, $correct);
pspell_save_wordlist($pspell_link);
?>


Пред. Начало След.
pspell_save_wordlist Уровень выше pspell_suggest


Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru