View previous topic :: View next topic |
Author |
Message |
ryansarmy -
Joined: 14 Nov 2003 Posts: 2
|
Posted: Tue Feb 10, 2004 9:03 pm Post subject: Pspell function with php |
|
|
Hi there, I was wondering if somebody could help me figure out why I can not get pspell to work. I have downloaded it and two dictionarys. I have configured php.ini and it even shows up on my phpinfo. But when I try to run a simple script it does nothing. I am new to php and I do not know if there is something wrong with the script or if I installed Pspell wrong. Pspell even seems to find the dictionary because if I change the name a little bit it says dictionary not found. After running the script below my screen is just blank.
Code: |
<?php
$pspell_link = pspell_new("en");
if (pspell_check($pspell_link, "tesst")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>
|
|
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Feb 10, 2004 9:21 pm Post subject: |
|
|
is this the whole script ? maybe you have to add a form element
where you submit a word and it tells you if its spelled correctly. |
|
Back to top |
|
 |
|