Sample Code
# PHP Source Code
require "phpspellcheck/include.php"
$spellcheckObject = new PHPSpellCheck();
$spellcheckObject -> LicenceKey = "TRIAL";
$spellcheckObject -> DictionaryPath = ("phpspellcheck/dictionaries/");
$spellcheckObject -> LoadDictionary("English (International)") ;
$spellcheckObject -> LoadCustomDictionary("custom.txt");
echo $spellcheckObject ->didYouMean("Any variabe or STring");
<!--JavaScript Source Code-->
<script type='text/javascript' src='/phpspellcheck/include.js' >
</script>
<script type='text/javascript'>
var mySpellInstance = new LiveSpellInstance()
function didyoumean(value){
mySpellInstance.AjaxDidYouMean(value)
}
mySpellInstance.onDidYouMean = function(suggestion,original){
if(suggestion) {
alert("Suggestion:"+suggestion)
}else{
alert("No Suggestions for:"+original)
}
}
</script>
[ javascript alternative ]