dhaval_83 Posted April 25, 2007 Share Posted April 25, 2007 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. Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted April 25, 2007 Share Posted April 25, 2007 Well, the file "C:\Program Files\Aspell\data/iso8859-1.dat" is not in the proper format. Duh. Try reinstalling it or contacting the A-spell people. monk.e.boy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.