php-general | 2001072
Date: 07/18/01
- Next message: Danielle Forestier: "[PHP] RE: bill"
- Previous message: Jason Bell: "[PHP] Fw: Data from SQL to a string in a useable format"
- In reply to: Garth Dahlstrom: "[PHP] PSPELL hell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is really a support question, not a development question, so please
use php-general *only*, not php-dev list, do not cross-post. Now, that
said, please reply privately to me so we take discussion off the list do
not clutter the mailing list. By the way, these issues have been covered
several times, so you could probably find an answer by looking through
archives of php-dev.
what's your:
1. Configure line for php?
2. Configure lines for aspell and pspell?
3. Which order did you install aspell and pspell in?
4. /etc/ld.so.conf if you have one?
5. Can you go to pspell/examples directory, do 'make example-c', then
'su nobody' (or use the user that php scripts are executed as, if not
nobody), then do './example-c en' and check a spelling of a word, by,
say, doing 's hullow'.
pspell installation is unfortunately not always straight-forward, but it
is not a rocket science either. Yet it is very easy to install them in a
way that php will compile, but won't work with those libraries.
Vlad
Garth Dahlstrom wrote:
>I compiled pspell into PHP 4.0.6, but when
>I go to execute the example I get unable to
>load aspell module... aspell 0.32 is on the
>box.
>
>Help!
>
>Output:
>-------
>Warning: PSPELL couldn't open the dictionary. reason: Unable to load the
>"aspell" module. in /var/www/spell.php on line 2
>
>Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 4
>
>Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 5
>Possible spelling:
>
>Input:
>------
><?php
>$pspell_link = pspell_new ("en");
>
>if (!pspell_check ($pspell_link, "testt")) {
> $suggestions = pspell_suggest ($pspell_link, "testt");
>
> for ($i=0; $i < count ($suggestions); $i++) {
> echo "Possible spelling: " . $suggestions[$i] . "<br>";
> }
>}
>?>
>
>-Garth
>
>---
>http://www.northern.ca
>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Danielle Forestier: "[PHP] RE: bill"
- Previous message: Jason Bell: "[PHP] Fw: Data from SQL to a string in a useable format"
- In reply to: Garth Dahlstrom: "[PHP] PSPELL hell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

