【发布时间】:2014-04-06 22:09:07
【问题描述】:
好的,我已经阅读了 php.net 文档,我已经浏览了包括 stackoverflow 在内的众多网站以寻求解决方案,但没有任何帮助。所以我在问,有没有人可以发布一个权威的指南来让你在 Windows 上工作?
我的设置是:
- Windows 7
- WAMP 服务器 2.0
- PHP 5.3.0
PHP位于
C:/wamp/bin/php/php5.3.0
我从http://downloads.php.net/pierre/php_enchant-1.1.0-5.3-vc9-x86.zip 下载了 php_enchant.dll 并解压缩了它的内容。我按照自述文件的说明做了,并且
- 将 php_enchant.dll 移至 C:/wamp/bin/php/php5.3.0/ext(我的 扩展路径)
- 将所有其他 dll 文件移动到 C:/wamp/bin/php/php5.3.0
- 在我的 php.ini 中添加了 extension=php_enchant.dll
- 重启httpd
对于字典,我按照这里的第一个答案PHP: Enchant Spell Checking not working. Configuration in Windows?
- 我从 Mozilla 下载了正确的字典 zip 文件
- 我把它们放在 C:/wamp/bin/php/php5.3.0/share/myspell/dicts 里面
在所有这些尝试运行之后 enchant_broker_init(); 给出一个致命错误。我真的不知道还能做什么。如果有人能给我一些建议,我将不胜感激。
编辑:好的,所以我的 apache 错误日志给出了以下错误
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.0/ext/php_enchant.dll' - The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.\r\n in Unknown on line 0 <b>Warning</b>: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.0/ext/php_enchant.dll' - The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.in <b>Unknown</b> on line <b>0</b>[Wed Mar 05 15:28:02 2014] [notice] Child 6128: Child process is running
现在拔掉我的头发。
【问题讨论】:
标签: php windows dll wamp enchant