2016-09-21 9 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이 구성되지 않았다고 말했습니다. 그러나 그 질문에 답하기. 귀하의 호스팅 회사는 어디서 도서관을 찾을 수 있어야합니다. 더 나아가 디렉토리가 어디에 있는지도 알 필요가 없습니다. 다음과 같이 당신은 php.ini 파일에로 - 더 pspell 함수는 pspell에 호출해야한다 :

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

대부분의 시간을 당신도 경우 php.ini 파일에서 이러한 개조를 호출 할 필요가 없습니다 aspell 및 pspell이 올바르게 구성되었습니다.