![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear Informixers, it's been a long time since I've been active in this group. Our IDS server is just running smoothly, so I didn't need assistance. But now something new has come up: We have a web application in_house that our department wants to participate in. The application is running under PHP5 on a Linux server. This application now needs access to data in our IDS 11.50 server. I have no PHP knowledge, and the developer of the application has no Informix knowledge. So I'm looking for a HowTo to implement PHP access to our data, but the search has been very frustrating. There is a PDO_IBM driver available for which there is practically no documentation available, at least as far as Informix acess is concerned. It seems that this requires a DB2 client on the PHP machine and DRDA on the IDS server, but I have never worked with DRDA and would like to avoid that if possible. There is also a PDO_Informix driver but that seems to be not actively supported any more and doesn't run with current versions of PHP. Does anyone hear have a successful connection from PHP to IDS 11.50 and can give me step-by-step instructions about how to implement this? Regards, Richard _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#3
| |||
| |||
|
|
For the client side, you can download the same IBM driver that is used for DB2 and install that on the PCs that need access to the database and configure a connection |
#4
| |||
| |||
|
|
Does anyone hear have a successful connection from PHP to IDS 11.50 and can give me step-by-step instructions about how to implement this? |
#5
| |||
| |||
|
|
For the client side, you can download the same IBM driver that is used for DB2 and install that on the PCs that need access to the database and configure a connection Hi Art, Can you elaborate on that. We're running pdo_informix and looking into pdo_ibm makes sense. I tried to install it once but I understand it requires the DB2 client SDK? I wasn't able to get it then and aborted the attempt. Is there any documentation? Regards, Aleksander Kamenik System Administrator Krediidiinfo AS an Experian Company Phone: +372 665 9649 Email: aleksander (AT) krediidiinfo (DOT) ee _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#6
| |||
| |||
|
|
From: Art Kagel [mailto:art.kagel (AT) gmail (DOT) com] Check out this link: http://publib.boulder.ibm.com/infoce...nn.doc/php.htm The "db2 driver" is any of several packages. The link above notes that the easiest to use is "IBM Data Server Driver for ODBC and CLI" found at: https://www14.software.ibm.com/webap...wg-informixfpd installation instructions are at: http://publib.boulder.ibm.com/infoce...installcli.htm |
#7
| |||
| |||
|
|
-----Original Message----- From: informix-list-bounces (AT) iiug (DOT) org [mailto:informix-list- bounces (AT) iiug (DOT) org] On Behalf Of Kamenik, Aleksander Sent: Wednesday, March 30, 2011 2:12 PM To: informix-list (AT) iiug (DOT) org Subject: RE: PHP and Informix? From: Art Kagel [mailto:art.kagel (AT) gmail (DOT) com] Check out this link: http://publib.boulder.ibm.com/infoce...ex.jsp?topic=/ com.ibm.conn.doc/php.htm The "db2 driver" is any of several packages. The link above notes that the easiest to use is "IBM Data Server Driver for ODBC and CLI" found at: https://www14.software.ibm.com/webap...?lang=en_US&so urce=swg-informixfpd installation instructions are at: http://publib.boulder.ibm.com/infoce...ex.jsp?topic=/ com.ibm.conn.doc/installcli.htm Thanks, this got me started. The link you provided got me is the 9.5 version though. On a separate route through the corporate homepage hell I got the latest 9.7 version. It might be found here, if you're lucky: http://www-01.ibm.com/software/data/db2/linux-unix- windows/download.html -> Data Server Client Packages (GA level) -> IBM Data Server Driver for ODBC and CLI (CLI Driver) -> Choose your platform and download. Then, you download the latest fixpack. The reason for the GA download is that the fixpack does not contain the header files which you'll need to build pdo_ibm. http://www-01.ibm.com/software/data/db2/linux-unix- windows/download.html -> Data Server Client Packages (latest fixpacks) -> Choose the latest version which matches with tha GA release and download the fixpack. But even this is not enough. These fixpacks (at least for 32bit linux) use security32/plugin/IBM/client/IBMOSauthclient.so.1, which is linked against libdb2osse.so.1 which is NOT included. If you're trying to make an RPM package then rpm will complain that you don't have libdb2osse.so.1 installed. I don't know what it does or if it's actually required but why link against it then? It is shipped with the DB2 Client (v9.7fp3a_linuxia32_client_conpe_t.tar.gz), which can be found on the same fixpack page. Choose Client instead of Cli and ODBC driver. You only need the latest fixpack. I couldn't figure out how to extract the .so without installing the package. But fortunately I had junk VM's lying around. From an installation there I copied the libdb2osse.so.1 file. So to install this package, which is required by pdo_ibm, I have this script (from the install section of my rpm spec file): ## installdir is something like /opt/ibmclidriver mkdir -p %{buildroot}%{installdir} cd %{buildroot}%{installdir} ## extract the GA version, which includes the header files tar -zx --strip- components=2 -f %{_sourcedir}/ibm_data_server_driver_for_odbc_cli_32_linuxia32_v 97.tar. gz ## overwrite with the fixpack. Kind of an upgrade tar -zx --strip- components=2 -f %{_sourcedir}/v9.7fp3a_linuxia32_odbc_cli.tar.gz ## install the libdb2osse.so.1 library on the system mkdir -p %{buildroot}%{_libdir} cp %{_sourcedir}/libdb2osse.so.1 %{buildroot}%{_libdir} cd %{buildroot}%{_libdir} ln -s libdb2osse.so.1 libdb2osse.so Now the pdo_ibm install is simple, provided you have the pdo header files installed, probably the php-devel package. This is for SLES11SP1, but can be changed for any other distro: %build phpize %configure --with-pdo-ibm=/opt/ibmclidriver make %install mkdir -p %{buildroot}%{extension_dir} mkdir -p %{buildroot}%{php_module_conf_dir} cp modules/%{module_name}.so %{buildroot}%{extension_dir} echo "extension=%{module_name}.so" > %{buildroot}%{php_module_conf_dir}/%{module_name}.ini Hope this helps someone, Aleksander Kamenik System Administrator Krediidiinfo AS an Experian Company Phone: +372 665 9649 Email: aleksander (AT) krediidiinfo (DOT) ee _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#8
| |||
| |||
|
|
Thanks, this got me started. [ long odyssey through installation steps deleted... ] |
![]() |
| Thread Tools | |
| Display Modes | |
| |