PSpell in Quercus?

半世苍凉 提交于 2019-12-24 16:42:20

问题


We're running Quercus on Glassfish to serve the odd PHP file.

I'm wondering if its possible to get PSpell/ASpell(?) spellchecker(s) working in Quercus?

It seems for normal PHP you need to compile it w/ PSpell so I'm not too sure how to go about this in Quercus ...

Any pointers greatly appreciated :P


回答1:


I would highly recommend switching to php-java-bridge, if possible. Quercus locks you into their version of php and you have to be dependent on them to port the extensions to their version. The php-java-bridge gives you access to the complete access to the 'official' php functionality and extensions.

I evaluated Quercus for use in a project, but soon realised that the required extensions were not available and switched to php-java-bridge.




回答2:


http://upgradephp.berlios.de/pspell.txt

Incomplete. Don't know much about Quercus. But you might need to change the backtick operator to exec(). Oh, and of course it requires a working aspell binary. It's just a wrapper to the cmdline utility.

Contribute back :P



来源:https://stackoverflow.com/questions/2951529/pspell-in-quercus

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!