473,508 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to load dynamic library php_ibm_db2.dll

14 New Member
HELP!

Setup: PHP5.2.5, IIS 5.1, XP, AS/400 (DB/400 or DB2)

I am trying to connect to a DB2 database from my computer. I installed DB2 Connect and set up the ODBC Driver in the Data Source Administrator. I uncommented the extension=php_ibm_db2.dll line in my php.ini file.

[PHP]<?php
$DBName = "WSC520"; // The name of the database
...

include('adodb/adodb.inc.php');
$db = ADONewConnection('db2');
$db->curMode = SQL_CUR_USE_ODBC;
//$dns = "Driver={IBM DB2 ODBC DRIVER};Database=".$DBName.";Hostname=".$Host.";Po rt=446;Protocol=TCPIP;".
$dns = "Driver={iSeries Access ODBC Driver};Database=".$DBName.";Hostname=".$Host.";Po rt=446;Protocol=TCPIP;".
"Uid=".$User.";Pwd=".$Password;

// if ($db->Connect($Host, $User, $Password)) {
if ($db->Connect($dns, $User, $Password, $DBName)) {
// if ($db->Connect($dns)) {
echo "It worked";
} else {
echo "didn't work";
}
?>[/PHP]

I continue to get the following error no matter what I do:
Expand|Select|Wrap|Line Numbers
  1. PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php-5.2.5\ext\php_ibm_db2.dll' - The specified module could not be found.
  2.  in Unknown on line 0
I think this is causing my other error:
Expand|Select|Wrap|Line Numbers
  1. PHP Warning:  odbc_connect() [<a href='function.odbc-connect'>function.odbc-connect</a>]: SQL error: [IBM][iSeries Access ODBC Driver]Missing system name needed for connection., SQL state S1000 in SQLConnect in C:\EmployeePortal\adodb\drivers\adodb-odbc.inc.php on line 170
Thanks
Jan 17 '08 #1
3 6231
code green
1,726 Recognized Expert Top Contributor
Is this DLL exactly where the system is looking for it.You haven't said so.
That is php_ibm_db2.dll is in C:\php-5.2.5\ext\
Jan 18 '08 #2
Harmony504
14 New Member
Yes the file is there. I even downloaded it again from the php snapshot for the pecl for 5.2. That didn't help. So I am thinking the file is not corrupted. I can still execute php scripts with this error. I just cannot connect to the DB2. I don't know what else to try...
Jan 18 '08 #3
code green
1,726 Recognized Expert Top Contributor
It looks like the instalation of IBM DB2 Universal Database client didn't go well.
I can only suggest a bit more research on the subject, and attempt a re-install, sorry.
Jan 18 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
20603
by: Stefan | last post by:
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir =...
3
22247
by: Willis Lang | last post by:
Warning: Unknown(): Unable to load dynamic library './php_oci8.dll' - Access is denied. Error keeps coming up on server. I made sure the security settings were set on the file and all...
19
13267
by: Nancy | last post by:
Hi, When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php...
0
2839
by: Karim | last post by:
I am getting the error "unable to load dynamic libray php_mcrypt.dll...". I understand that php_mcrypt.dll depends on the existence of libmcrypt.dll library. I am using Windows 2003 and I have...
7
18241
by: ccp999 | last post by:
I keep getting this: "PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found." when I tried to load the php_mysql.dll...
3
25158
by: Nikola Skoric | last post by:
Hi there, When I try to connect to mysql, I get: Fatal error: Call to undefined function mysql_connect() in D:\www\kviz \scripts\data_connect.php on line 3 PHP Warning: PHP Startup: Unable to...
9
4579
by: Christopher Koeber | last post by:
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.