pspell problem...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Amaranthine
Forum Newbie
Posts: 1
Joined: Fri Apr 16, 2004 4:29 pm

pspell problem...

Post by Amaranthine »

I am having problems getting pspell to work.
I installed aspell and an english dictionary.
I added extension=blah to my php.ini file and moved both aspell.dll and pspell.dll to my extension folder and my winnt/system32 folder.
In phpinfo() pspell is there and is enabled (so I assume it is all installed correctly.)

Here is my problem:
Whenever I run any .php file with pspell functions in it I get this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, me@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Maybe a problem with where my dictionaries are?
they are in C:\Program Files\Aspell\dict and winnt/system32 and my extensions folder and my php folder

Some info about my setup:
PHP Version: 4.3.6RC1
Apache 2
Win XP

Here is an example that gives me that message:

Code: Select all

<?php
$pspell_link = pspell_new("en");
if (pspell_check($pspell_link, "testt"))
   echo "This is a valid spelling";
else
   echo "Sorry, wrong spelling";
?>
Post Reply