- Install DB2 Express-C
- Install Apache HTTP Server 2.2.x
- Install PHP 5.3.x (VC6, thread-safe)
- Get the compiled IBM_DB2 extension (VC6, thread-safe, not nts)
- Copy the unzipped DLL to the extensions directory of your PHP installation. For example:
C:\Program Files\PHP\ext - Open the php.ini of your PHP installation. For example:
C:\Program Files\PHP\php.ini - Add these lines at the end:
[IBM_DB2]
extension=php_ibm_db2.dll - Restart your web server:
- Create a text file in your Apache htdocs folder. For example, in:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs - Call it test.php and paste the following into it:
<?php
echo phpinfo();
?> - Open http://localhost/test.php in your web browser
- If you see the following, your installation is ready for use:
Additional Resources
- DB2 Express-C forum
- PHP Development Tools - PHP Editor
- ibm_db2 API for PHP - Documentation
Cheers,
Leons Petrazickis
DB2 Express-C Community Team
I can't find a 64-bit compiled php_ibm_db2.dll.
ReplyDelete@Kelvin: Is there a 64-bit release of PHP for Windows? Googling, all the Windows binaries of Apache and PHP that I'm seeing are 32-bit. Is this for IIS?
ReplyDeleteIf you are compiling from source, you can get the extension source here:
http://pecl.php.net/package/ibm_db2
You'll need the DB2 headers included in the IBM Data Server Driver for ODBC and CLI:
https://www-304.ibm.com/support/docview.wss?rs=4020&uid=swg27016878