Our email clients and word processors have spell checking, so why don't our web applications? The reason is not that it is difficult to do. It is because most people don't take the time to build it into the application. Adding spell check capabilities to our web applications is an easy and effective way to take them to the next level of professionalism. In this section, we will build a simple spell checker that you can use and expand upon for your own applications.
Unfortunately, the spell checking functions in PHP cannot be used in a Windows environment.
On all other systems, you must have the proper libraries installed and compile PHP with the --with-pspell option. The libraries for aspell can be found at http://aspell.net/.
One mildly confusing element about this extension is the naming conventions. The extension is named pspell, but we use the aspell libraries along with it. The reason for this discrepancy is that the aspell library includes all of pspell. There are aspell functions within PHP, but don't let those confuse you. The aspell functions are deprecated and should be avoided. The bottom line is that you should use the pspell functions along with the aspell library.