我刚切换到与godaddy的cpanel服务器。我完全集成了pspell,它工作得很好。现在我得到了以下错误
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.';如何在服务器上找到语言文件或对其进行测试?我打电话给谷歌爸爸,他们说已经设置了一个拼写,我测试了一下我的php,结果显示已经启用了pspell。
发布于 2016-09-26 02:56:02
在多次打电话给godaddy之后,他们最终告诉我,aspell还没有被配置。而是回答这个问题。你的托管公司应该知道哪里可以找到这些库。此外,您甚至不需要知道目录的位置。您只需在php.ini文件中使用-调用拼写,如下所示:
extension=php_zip.dll
extension=aspell-15.dll
extension=php_pspell.dll大多数时候,如果拼写和拼写配置正确,你甚至不应该在php.ini文件中调用这些mod。
https://stackoverflow.com/questions/39623683
复制相似问题