This is something I have been working on for a while for my poetry members section. After it’s official release, I decided to release another version which can be downloaded and used by whomever pleases.
Current version: 0.1
You can find the download here: spell_check-0.1.zip (need winzip?)
Instructions:
1. Unzip the file to a directory on your hard drive.
2. Change the mysql_connect to your username, password and database name along with your host (most likely it won’t need changed) within these three files:
create_dictionary_db.php
insert_soundex_db.php
spell_checker.php
3. Upload create_dictionary_db.php to your server and run it by going to the files address on your website Then delete the file off your server.
4. You have two choices:
1. Login to phpMyAdmin (or control panel of your database) and find the `dictionary` table. Open it, then upload each words .gz file until they have all been uploaded.
or
2. Open each words .gz file on your hard drive and edit the .txt file within it to connect to your DB, then upload the files and connect to it through your website (HINT: If your server is running slow for whatever reason, or you have a slow connection, this may not work for you since mysql times out after 30 seconds on most systems).
5. Upload insert_soundex_db.php to your server and run it by visiting it through your website. Then delete the file off your server.
6. Upload remaining files (except instructions_credits_gpl.txt).
Contents:
spell_checker.css
spell_check.gif
words-a-d.gz
words-d-e.gz
words-e-f.gz
words-f-i.gz
words-i-n.gz
words-n-r.gz
words-r-s.gz
words-s-z.gz
spell_check.js
create_dictionary_db.php
example.php
insert_soundex_db.php
spell_checker.php
instructions_credits_gpl.txt
Since this is a free script, please place a link to either http://impnerd.com/ or http://www.poemofquotes.com/ or this page if you enjoy the script.
|
|
|
|
|
![]() |
If you enjoyed this post, please consider subscribing to my full feed RSS.
Written: Mar 24, 2006Tags: ajax, Javascript, spell check
Related Articles:
AJAX Spell Check 0.2 - UPDATE
Blogging Tip - Be Yourself
About impNERD
Glossary of Web Terms
DS & PSP Mods







What would really be benificial is extend the concept to do one the fly spell checking like the new AJAX interface of Windows Live Mail.
As you type and press space to go to next work it does a background connection and checks if the word is valid.
If it is not valid then it underlines it with a red twiddly line.
The reason why Windows Live Mail does what it does is because of ActiveX, not all browsers support the use of ActiveX and for good reason. It is very unsecure. I’m not about ready to recommend anyone to use ActiveX, none-the-less build something which supports it.