Umesh
asked on
Pspell related: !!PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
Hi Xperts,
Platform Details
PHP: PHP-4.4.2 (Downloaded zip file from us2.php.net)
OS:Win2k
WebServer: IIS5
Also installed these..downloaded from
aspell.net/win32(C:/Aspell )
Aspell-0-50-3-3-Setup.exe
Aspell-en-0.50-2-3.exe
my phpinfo() shows
pspell
PSpell Support enabled
When I try to run PHP script contaning below code(partial)
$path_to_personal_dictiona ry = dirname(__FILE__) .
"/personal_dictionary/MPWo rdS.txt";
//If pspell doesn't exist, then include the pspell wrapper for
> aspell.
if(!function_exists('pspel l_suggest' ))
{
// Set the path to aspell if you need to use it.
define('ASPELL_BIN','/usr/ bin/aspell ');
require_once ("pspell_comp.php");
}
// Create and configure a link to the pspell module.
$pspell_config = pspell_config_create("en") ;
pspell_config_mode($pspell _config, PSPELL_FAST);
if($usePersonalDict)
{
// Allows the use of a custom dictionary (Thanks to Dylan
Thurston for
this addition).
pspell_config_personal($ps pell_confi g,
$path_to_personal_dictiona ry);
}
$pspell_link = pspell_new_config($pspell_ config); //Here
comes the
error...
Getting below error..
!!PHP Warning: PSPELL couldn't open the dictionary. reason: No
> word lists
can be found for the language "en". in
c:inetpubwwwrootspell_chec kerspell_c hecker.php on line 76
Pls suggest the possible fix here..
Platform Details
PHP: PHP-4.4.2 (Downloaded zip file from us2.php.net)
OS:Win2k
WebServer: IIS5
Also installed these..downloaded from
aspell.net/win32(C:/Aspell
Aspell-0-50-3-3-Setup.exe
Aspell-en-0.50-2-3.exe
my phpinfo() shows
pspell
PSpell Support enabled
When I try to run PHP script contaning below code(partial)
$path_to_personal_dictiona
"/personal_dictionary/MPWo
//If pspell doesn't exist, then include the pspell wrapper for
> aspell.
if(!function_exists('pspel
{
// Set the path to aspell if you need to use it.
define('ASPELL_BIN','/usr/
require_once ("pspell_comp.php");
}
// Create and configure a link to the pspell module.
$pspell_config = pspell_config_create("en")
pspell_config_mode($pspell
if($usePersonalDict)
{
// Allows the use of a custom dictionary (Thanks to Dylan
Thurston for
this addition).
pspell_config_personal($ps
$path_to_personal_dictiona
}
$pspell_link = pspell_new_config($pspell_
comes the
error...
Getting below error..
!!PHP Warning: PSPELL couldn't open the dictionary. reason: No
> word lists
can be found for the language "en". in
c:inetpubwwwrootspell_chec
Pls suggest the possible fix here..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This aspell+pspell module works properly when php installed as module..earlier it was CGI...so had to run php as module..
ASKER
//If pspell doesn't exist, then include the pspell wrapper for aspell.
if(!function_exists('pspel
{
// Set the path to aspell if you need to use it.
define('ASPELL_BIN','C:/As
require_once ("pspell_comp.php");
}
anything else..?