Call to undefined function pspell_new()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sathishkumar
Forum Newbie
Posts: 7
Joined: Mon Mar 15, 2010 11:43 pm

Call to undefined function pspell_new()

Post by sathishkumar »

Hi everybody

Fatal error: Call to undefined function pspell_new() in /Applications/xampp/xamppfiles/htdocs/sa/sat.php on line 2

i am using mac osx 10.5.8(Leopard) and xampp server.

i am very newbie to pspell.

can anyone help me to resolve this.

Regards,
sathish
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Call to undefined function pspell_new()

Post by flying_circus »

Is pspell loaded?

execute phpinfo(); and see if it is listed in the module list. If not, then you need to enable it in your php.ini and restart your webserver.
sathishkumar
Forum Newbie
Posts: 7
Joined: Mon Mar 15, 2010 11:43 pm

Re: Call to undefined function pspell_new()

Post by sathishkumar »

how to load pspell in mac osx xampp server.

I went into php.ini but i cant find pspell in it. I find aspell is to be download. How install the aspell in mac osx xampp server

Regards,
sathish
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Call to undefined function pspell_new()

Post by flying_circus »

All you should need to do is uncomment extension=pspell.xxx from the extensions section of the php.ini. If you run a search for "pspell" in your php.ini file, you should only find 1 occurance.
sathishkumar
Forum Newbie
Posts: 7
Joined: Mon Mar 15, 2010 11:43 pm

Re: Call to undefined function pspell_new()

Post by sathishkumar »

i am running on xampp in mac os x 10.5.8. I install cocoaspell for english dictionary. i have php_pspell.dll file and i have to know where i have put this dll file in my mac

cheers,
sathish
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Call to undefined function pspell_new()

Post by flying_circus »

This question might be better asked in the installation forum. I have next to zero mac experience, and didnt think mac librarys were dll's (doesnt mac use .so like *nix?). Pspell should have shipped with php by default, so you shouldnt need to add any files, you just need to flip the switch to enable the extension in the php.ini file. If you check your php installation directory, there should be a directory called ext. The ext directory should contain all php default extensions.
Post Reply