Page 1 of 1

Call to undefined function pspell_new()

Posted: Fri Mar 19, 2010 9:59 am
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

Re: Call to undefined function pspell_new()

Posted: Fri Mar 19, 2010 10:42 am
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.

Re: Call to undefined function pspell_new()

Posted: Fri Mar 19, 2010 10:54 am
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

Re: Call to undefined function pspell_new()

Posted: Fri Mar 19, 2010 11:45 am
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.

Re: Call to undefined function pspell_new()

Posted: Fri Mar 19, 2010 12:05 pm
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

Re: Call to undefined function pspell_new()

Posted: Fri Mar 19, 2010 1:04 pm
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.