php_imap.dll 适用于 php v 5.2.6 apache 适用于 Windows

发布于 2024-12-26 11:42:10 字数 1377 浏览 3 评论 0原文

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

我安装了其他扩展,所以我了解基础知识。我已经确认我的 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 工作站,该工作站针对 php 版本 5.3 运行 wamp。这有效。但是当我将相同的 .dll 复制到运行不同版本 php 的服务器时,它不起作用。有谁知道在哪里可以找到正确版本的 php_imap.dll?

https://www.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"

I am having problems installing the php_imap.dll extension for a webserver running apache and php 5.2.6 on windows server 2003 r2.

I have other extensions installed so I know the basics. I have confirmed that my php.ini file is pointing the the right extension directory. This is in my php.ini config

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

and I put the php_imap.dll in the /ext folder of apache where the others are located.

Then in the php error log I get:

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.

I think the issue is I have the wrong version of the php_imap.dll. The version I have is from my windows workstation that is running wamp against php version 5.3. and this works. But when I copy that same .dll to the server runnning a different version of php it does not work. Does anyone know where I can find the correct version of the php_imap.dll?

https://www.php.net/manual/en/install.pecl.windows.php

At the above site they say I should download the correct version, and some dlls are listed, but not the one that I need.

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"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

春夜浅 2025-01-02 11:42:10

如果您只需要 php5.2.6 的 php_imap.dll,您可以在 WampServer 插件存档。有一个 5.2.6插件

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

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

希望这有帮助!

If you only need this php_imap.dll for php5.2.6, you will find it in WampServer addons archive. There is a 5.2.6 addon

It will not replace your php/apache current installation, but this addon contain a lot of non standard extensions for PHP

My advice is to extract it on your workstation, and take only the php_imap.dll and drop it in you ext/ folder in windows server 2003 r2.

Hope this helps !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文