2016-09-21 24 views
0

我刚刚切换到与godaddy cpanel服务器。我完全与pspell集成,它工作得很好。现在我得到了以下错误位于服务器上的aspell库在哪里?我如何检查他们?

Warning: pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en". 

这是我的代码

$pspell_config = pspell_config_create("en"); 
pspell_config_personal($pspell_config, "/home/user/public_html/custom.pws"); 
pspell_config_repl($pspell_config, "/home/user/public_html/custom.repl"); 
$pspell_link = pspell_new_config($pspell_config); 

error_reporting(E_ALL); 
@ini_set('display_errors', 1); 

// Call it once first because of a bug in Windows' Aspell. 
pspell_new('en'); 

$test = pspell_new('en'); 

echo ' 
    Testing pspell.... ', pspell_check($test,'thisisnotawordandyouknowit') ? 'failure' : 'pass', '.<br /> 
    If no error messages were displayed, Aspell is installed and working properly.'; 

我该如何定位我的服务器上的语言文件或测试呢?我打电话给godaddy,他们说aspell已经建立,我测试了我的php,它说pspell已启用。

回答

0

多次打电话给godaddy后,他们终于告诉我aspell没有配置好。但要回答这个问题。您的托管公司应该知道在哪里可以找到这些库。更进一步,你甚至不需要知道目录所在的位置。您应该只需要调用到pspell:在你的php.ini文件,如下所示:

extension=php_zip.dll 
extension=aspell-15.dll 
extension=php_pspell.dll 

大多数时候,你不应该甚至,调用这些MODS在php.ini文件中,如果aspell和pspell配置正确。

相关问题