473,725 Members | 2,241 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_i bm_db2.dll line in my php.ini file.

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

include('adodb/adodb.inc.php') ;
$db = ADONewConnectio n('db2');
$db->curMode = SQL_CUR_USE_ODB C;
//$dns = "Driver={IB M DB2 ODBC DRIVER};Databas e=".$DBName.";H ostname=".$Host .";Port=446;Pro tocol=TCPIP;".
$dns = "Driver={iSerie s Access ODBC Driver};Databas e=".$DBName.";H ostname=".$Host .";Port=446;Pro tocol=TCPIP;".
"Uid=".$User."; Pwd=".$Password ;

// if ($db->Connect($Hos t, $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 6265
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
20612
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 = "c:/php/extensions/" But I am still getting the error that it can't find the php_mhash.dll though I can see that it is indeed in the folder.
3
22262
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 recursive directories just in case. Moved the file around everywhere. (c:\winnt\system32, c:\winnt, d drive) Changed IIS to control password. Tried using both php.ini files. Changed the extension path. Php works when I comment oci8 extension on...
19
13285
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 module and works well. I copied php_msql.dll to my system32 directory. Who knows what's wrong? Thanks a lot?
0
2859
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 downloaded two versions of this dll and installed them once in php's ext folder and Windows's system32. The question is why am I still getting this error? Why are there different versions of libmcrypt.dll around while there's no version info in the...
7
18265
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 module when starting my Apache 2.0 in windows XP. The file, php_mysql.dll is there. why? Do I have to load this file before I can use "mysql_connect()"?
3
25168
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 load dynamic library 'C:\PHP\ext \php_mysql.dll' - The specified module could not be found. in Unknown on line 0 BUT, the interesting thing is that in my C:\PHP\ext there exists
9
4593
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 that will reside within the Apache instance that requires PHP 5.2.6 loaded with MySql support. The installation of PHP succedded without incident (it was done manually) and I can run phpinfo() to get information about the installation. However,...
0
9250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9098
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8080
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6699
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4507
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2153
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.