• 1 reply
  • Latest Post - ‏2012-05-17T22:00:03Z by SystemAdmin
3 Posts

Pinned topic xampp connect to DB2

‏2012-05-14T06:13:12Z |

My name is Luan, i am trying to connect the DB2 database via PHP instead of Mysql. However, i got the error is :"Fatal error: Call to undefined function db2_connect() in C:\xampp\htdocs\index.php on line 6". Even I follow the step in this link

however, i also confuse about the php_ibm_db2.dll file, i don't know which file is match with my Apache server. Here is my system information

XAMPP SERVER 1.7.7 - VC9 x86
{ Apache 2.2.21
MySQL 5.5.16
PHP 5.3.8
phpMyAdmin 3.4.5
FileZilla FTP Server 0.9.39
Tomcat 7.0.21 (with mod_proxy_ajp as connector) }

Windows xp 32bit

FILE: extension php_ibm_db2-1.9.1-5.3-ts-vc9-x86 (try nts also)
download from
Note: when i try to start xampp apache with apache_start -t there is no error

Please help to find any wrong step in my process or any solution.

Thank so much for your help.
Updated on 2012-05-17T22:00:03Z at 2012-05-17T22:00:03Z by SystemAdmin
  • SystemAdmin
    5837 Posts

    Re: xampp connect to DB2

    On my Windows XP 32-bit, I downloaded this file: as the instructions said, and it's work just fine.

    I think if you change the file it should be ok.
    Good luck!