History of Install pspell on Windows
Version 1
Install pspell on Windows
Notes on configuring aspell/pspell with Windows PHP
Created by: Lester Caine, Last modification: 21 Oct 2006 (16:06 UTC) by Lester Caine
Since the notes in the PHP manual seem a little lacking I though I'd include a note here on configuring the pspell functions in Windows PHP.
aspell win32
This gets iinstalled by running the installer, and puts the program in Program Files\Aspell\ by default. The aspell-15.dll needs copying to the windows execution path. The PHP directory is probably the tidiest place, but \system32 may be required. ( Need to check this now that I'm running )
Running the dictionary installer copies all the files to the place that aspell was installed.
{code source=PHP}extension=php_pspell.dll(/code)
needs adding to the php.ini directory to enable the package, and Apache needs restalling to pick it up.
<?php
echo "Check Spelling Installation";
$pspell_link = pspell_new("en");
print_r($pspell_link);
if (pspell_check($pspell_link, "colour"))
{ echo "This is a valid spelling"; }
else
{ echo "Sorry, wrong spelling"; }
?>(/code)
Download and Install ASpell Win32
It would be interesting to know if there is a later windows build of aspell, since this seems to be some 4 years old.aspell win32
This gets iinstalled by running the installer, and puts the program in Program Files\Aspell\ by default. The aspell-15.dll needs copying to the windows execution path. The PHP directory is probably the tidiest place, but \system32 may be required. ( Need to check this now that I'm running )
Install a Dictionary / Dictionaries
Windows Dictionaries has a number of dictionaries for use with the package. I downloaded the English one, but need to check if I have British rather than American.Running the dictionary installer copies all the files to the place that aspell was installed.
Enable the pspell extension
Getting the spelling right,
<?php
?>
<?php
?>
needs adding to the php.ini directory to enable the package, and Apache needs restalling to pick it up.
Test the installation
{code source=PHP}<?php
echo "Check Spelling Installation";
$pspell_link = pspell_new("en");
print_r($pspell_link);
if (pspell_check($pspell_link, "colour"))
{ echo "This is a valid spelling"; }
else
{ echo "Sorry, wrong spelling"; }
?>(/code)