Foundeo
Foundeo Spell Checker 2.0 Install Instructions

1) Install the Java JRE (http://java.sun.com). The spell checker is backward compatible to Java 1.1

2) Install the PHP Java Extension (php_java.dll on windows, or libphp_java.so on unix)

See: PHP & Java article at PHPBuilder.com, the Java extension Readme, or the page on PHP/Java Integration in the PHP docs. The example provided at both of these locations should be used to test your installation.


Example config for Windows in php.ini:

[Java]
extension=php_java.dll
java.class.path = "c:\php\extensions\php_java.jar;c:\php\extensions\activspell2.jar"
java.home = c:\j2sdk1.4.1_01
java.library = c:\j2sdk1.4.1_01\jre\bin\server\jvm.dll 
java.library.path = c:\php\extensions
Note that in my installation, I've chosen to place all third-party libraries, such as activspell2.jar in the extensions directory.

Example config for unix

[Java]
extension=libphp_java.so
java.class.path = "/usr/local/php/php_java.jar:/usr/local/php/extensions/ActivSpell2.jar"
java.home = /usr/java
java.library = /usr/java/jdk1.3.1/lib/i386/hotspot/libjvm.so
java.library.path = /usr/local/php/extensions


3) Copy the spellcheck directory to the document root for the domain in which it will be used. If you choose to place this directory in a sub-directory, you will need to modify site-relative paths in the JavaScript include you choose to use.

4) Browse to spellchecker/example.php to test.