By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,918 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,918 IT Pros & Developers. It's quick & easy.

Spell check fatal error

P: 72
hi guys,
now i worked in text box spell checker,i wrote the code for spell checker but its not working fine,it display the fatel error like Call to undefined function pspell_new().Guys please give me the solution for this error its very urgent for me....

Apr 28 '08 #1
Share this Question
Share on Google+
4 Replies

Expert 2.5K+
P: 4,258
Without the code there is not much to say for us, is there? And display it within the appropriate code tags!
All I can say now is that the function 'pspell_new()' does not exist or cannot be found in any included file.

Apr 28 '08 #2

P: 72
My code is given below,[php]
<?php $pspell_link = pspell_new("en");
if (pspell_check($pspell_link, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
} ?>[/php]
Apr 29 '08 #3

Expert 100+
P: 1,168
"Currently, the compiled build of PHP5 for Windows does not by default include PSpell, and to activate these functions the Windows user has to (a) install GNU ASpell; (b) copy the file aspell-15.dll to a directory in the Windows "Path" statement (typically C:\Windows\System32); (c) install one or more ASpell dictionaries; (d) enable the PSpell extension to PHP by adding a reference to php_pspell.dll in the php.ini file, and moving the file itself to the main PHP directory."

Are you sure you have it installed?
Apr 29 '08 #4

Expert 2.5K+
P: 4,258
Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future.

Apr 30 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.