我很难在 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 扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!