Pspell function with php

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
ryansarmy
-


Joined: 14 Nov 2003
Posts: 2

PostPosted: Tue Feb 10, 2004 9:03 pm    Post subject: Pspell function with php Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Feb 10, 2004 9:21 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group