Jump to content

dhaval_83

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dhaval_83's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey All i have installed Aspell-0-50-3-3-Setup.exe and Aspell-en-0.50-2-3.exe for Win32 system i have done all configuration which are required for aspell-15.dll and php.ini extension = php_pspell.dll i have set system variables for dictionary folder and bin folder I have done written the code like this now i am getting error like this in you given code. the code is: <?php function spell_check ( $string, $misspelled = array (), $return = array () ) { $words = preg_split ( '/[\W]+?/', $string ); // we use the following (2) functions instead of pspell_new() // reset the dictionary path, Aspell will look at the system environment Path // anytime pspell_new_config() is called, over-riding the default hard-coded values $config = pspell_config_create ( 'en_US', '', '', 'utf-8' ); $int = pspell_new_config ( $config ); foreach ( $words as $value ) { if ( ! pspell_check ( $int, $value ) ) { $misspelled[] = $value; } } foreach ( $misspelled as $value ) { $return[$value] = pspell_suggest ( $int, $value ); } return $return; } print_r ( spell_check ( 'the hetel was raelly baad' ) ); ?> And The error is: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: abnormal program termination Unhandled Error: C:\Program Files\Aspell\dict/en-only.rws: The file "C:\Program Files\Aspell\data/iso8859-1.dat" is not in the proper format.
  2. Hey Nobody is here who knows the answer. very disappointed... :'(
  3. Hey guys i am writing steps what i did to install... System: Windows, Server: IIS 1. install aspell 2. download dictionary (English) 3. copy aspell-15.dll from /bin directory of aspell and paste it to C:\PHP and C:\WINNT\SYSTEM32\ 4. php.ini add extension = php_pspell.dll 5. run Spellcheck.php with $int = pspell_new("en", "", "", "",(PSPELL_FAST|PSPELL_RUN_TOGETHER)); if (!pspell_check($int, $value)) return true; else return false; but this code is also not working, i am taking the words from textarea one by one and check with this but no result the pspell_new is also not working because if i print something below $int = pspell_new("en", "", "", "",(PSPELL_FAST|PSPELL_RUN_TOGETHER)); like echo "hi"; it doesnt show me "hi" while running page. please let me know... thanks
  4. Let me try... oh still getting same error...
  5. $pspell_link = pspell_new("en"); $check = $_POST['words']; $needle = "http"; $allWords = explode("~", $check); $results; foreach ($allWords as $word) { if($word != strtoupper($word)){ //ignore all upper case words if (!pspell_check($pspell_link, stripslashes($word))) { $suggestions = pspell_suggest($pspell_link,$word); $allSugs = implode("~",$suggestions); $results .= $word."~" . $allSugs . "$$"; } } } echo "results=".$results;
  6. hey guys, i have one serious problem and cant find solution. I have downloaded class for spell check. and while running the file i m getting error like: Fatal error: Call to undefined function pspell_new() HP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pspell.dll' - The specified module could not be found. in Unknown on line 0 i looked in to ext folder and the dll is there, in php.ini dll is already open like ext = php_pspell.dll and still getting error. Please give me solution... Thanks Dhaval
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.