note 53943 deleted from function.pspell-config-personal by nlopess
| From: | nlopess@php.net | Date: | Tue, 08 Aug 2006 17:11:05 +0000 |
| Subject: | note 53943 deleted from function.pspell-config-personal by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115666@lists.php.net to get a copy of this message | ||
Note Submitter: Jonathan Boswell
----
If you have trouble getting the personal dictionary to load, make sure your dictionary is at the
Document root level. Sub folder dictionary files seem to have an issue loading.
<?php
$file = $_SERVER["DOCUMENT_ROOT"] . "/test/personal_dictionary.txt"; //Has
issues loading
$file = $_SERVER["DOCUMENT_ROOT"] . "/personal_dictionary.txt"; //Loads
correctly
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config,$file);
$pspell_link = pspell_new_config($pspell_config);
?>