Hi,
I just have to praise php builder once again for the incredible response time/good help combination. I'm still trying to work through some JQUERY stuff and I was recommended
dream in code's new JQUERY forum, but my first post has now had 0 responses in 4 days. This forum rocks. Thanks again.
*****ing aside, I'm working on using a personal dictionary (pspell) for a spell checker and the personal dictionary file is being made in the root folder and getting named "1" no matter what I do to the path. Can anyone tell why this would be happening? I realize it's difficult without knowing something about my site structure. This file is being called by an ajax post function on the root level, but it is in a folder one level up called php where there is a folder called dictionary. Here is my code:
<?php
$name = $_POST['objectname'];
if($_POST['update']){
$update = $_POST['update'];
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, 'php/dictionary/');
$pspell_link = pspell_new_personal($pspell_config, "en");
pspell_add_to_personal($pspell_link, $update);
pspell_save_wordlist($pspell_link);
echo 'word saved';
}
if(!$_POST['update']){
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, 'php/dictionary/');
$pspell_link = pspell_new_personal($pspell_config, "en");
if(pspell_check($pspell_link, $name)){
// if correct do nothing
echo 'good';
}else{
echo'Are you sure you spelled, your object name correctly? <a href="javascript:addToDictionary();">Yes</a>';
}
}
?>
Thanks as always.