Aspell + PHP + Windows was giving me just crazy crashes with this simple test file:
<?php
$pspell_link = pspell_new("en");
?>
Running "php -f test.php" directly from a DOS prompt shed some light:
----------------
The file "C:\Program Files\Aspell\data/iso8859-1.dat" can not be opened for reading.pell\dict/en-only.rws:
----------------
To fix it I needed to "dos2unix" all the files in Aspell's C:\Program Files\Aspell\data\ directory. (Convert them from CRLF to just LF line endings).
インストール手順
PHP をコンパイルする際に、オプション --with-pspell[=dir] を追加する 必要があります。
注意: Win32 ユーザへの注意
この拡張モジュールを動作させるには、 Windows システムの PATH が通った場所に DLL ファイルが存在する必要があります。 FAQ の "Windows で PHP のディレクトリを PATH に追加するにはどうすればいいのですか?" で、その方法を説明しています。 DLL ファイルを PHP のフォルダから Windows のシステムディレクトリにコピーしても動作します (システムディレクトリは、デフォルトで PATH に含まれるからです) が、これは推奨しません。 この拡張モジュールを使用するには、以下のファイルが PATH の通った場所にある必要があります。 aspell の bin フォルダにある aspell-15.dll
Win32 は、PHP 4.3.3 以降でのみサポートします。また、 aspell バージョン 0.50 以降が必要です。
インストール手順
juliusdavies at gmail dot com
19-Mar-2009 09:06
19-Mar-2009 09:06
