Windows 上 PHP7 的 php_ibm_db2.dll 扩展?

2024-05-11php开发问题
1

本文介绍了Windows 上 PHP7 的 php_ibm_db2.dll 扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我很难在 Windows 上找到 PHP7 的 php_ibm_db2.dll 扩展.https://pecl.php.net/package/ibm_db2 上的最新版本来自2016 年 4 月,所以自然不行.我尝试下载 Zend Server 9.1 的试用版并在非 Zend Server WAMP 堆栈中使用捆绑的 php_ibm_db2.dll 文件,但没有运气(32 位和 64 位版本).

I'm having a hard time finding a php_ibm_db2.dll extension for PHP7 on Windows. The most recent version on https://pecl.php.net/package/ibm_db2 is from April 2016, so naturally it doesn't work. I've tried downloading a trial of Zend Server 9.1 and using the bundled php_ibm_db2.dll file in a non Zend Server WAMP stack, but no luck (both for 32 and 64 bit versions).

是否有人使用 PHP7 和 db2_*() 函数从非 Zend Server WAMP 堆栈成功连接到远程 IBM DB2 实例?如果是这样,有什么建议/建议吗?

Has anyone successfully connected to a remote IBM DB2 instance from a non Zend Server WAMP stack using PHP7 and the db2_*() functions? If so, any advise/suggestions?

注意*:DB2 connect 已在我正在使用的 Windows 机器上安装、配置和连接良好.我想通过 PHP 的 ODBC 也可以工作,但我需要使用 db2_*() 函数来连接.

Note*: DB2 connect is installed, configured and connecting fine on the Windows machine I'm working on. I would imagine ODBC via PHP would work as well, but I need to use the db2_*() functions to connect.

推荐答案

pecl 仓库不再编译 dll,最新的是 1.9.9 for php 5.6 :(

The pecl repository isn't compiling the dlls anymore, the latest is 1.9.9 for php 5.6 :(

我为自己编译了 ibm_db2 2.0.5 for php 7.1.17

I compiled to myself the ibm_db2 2.0.5 for php 7.1.17

记住:安装 Ibm db2 ds 驱动程序并将 {ds_drivers_instalation_dir}/bin 添加到 Path 环境变量.

Remember: Install Ibm db2 ds drivers an add {ds_drivers_instalation_dir}/bin to Path env variable.

这篇关于Windows 上 PHP7 的 php_ibm_db2.dll 扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17