Jump to content

Please Help me out


dhaval_83

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.