php_imap.dll for php v 5.2.6 apache for windows

时间:2012-01-12 16:29:15

标签: php windows apache php-extension

我在安装运行apache的web服务器的php_imap.dll扩展和Windows Server 2003 r2上的php 5.2.6时遇到问题。

我安装了其他扩展程序,因此我了解基础知识。我已经确认我的php.ini文件指向正确的扩展目录。这是我的php.ini配置

extension=php_gd2.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_imap.dll

我把php_imap.dll放在apache的/ ext文件夹中,其他人都在这里。

然后在php错误日志中我得到:

12-Jan-2012 10:09:48] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_imap.dll' - The specified procedure could not be found.

我认为问题是我有错误的php_imap.dll版本。我的版本是从我的Windows工作站运行wamp对抗PHP版本5.3。这很有效。但是,当我将同样的.dll复制到运行不同版本的php的服务器时,它不起作用。有谁知道我在哪里可以找到正确的php_imap.dll版本?

http://us3.php.net/manual/en/install.pecl.windows.php

在上面的网站上,他们说我应该下载正确的版本,并列出一些dll,但不是我需要的那些。

PHP API 20041225
Thread Safety   enabled
Configure Command   cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"

1 个答案:

答案 0 :(得分:1)

如果您只需要这个php_imap.dll用于php5.2.6,您将在WampServer addons archive中找到它。有一个5.2.6 addon

它不会取代你的php / apache当前安装,但是这个插件包含许多PHP的非标准扩展

我的建议是在工作站上提取它,只取php_imap.dll并将其放在Windows server 2003 r2中的ext/文件夹中。

希望这有帮助!