Here is an interesting link comparing PDO and MySQLi. You could probably make the same comparison between PDO and IBM_DB2. Note that both the IBM DB2 extension and PDO IBM need a native client installed, and for IBMi, that client is DB2 Connect. I don't know if you can use PDO_ODBC with IBMi, there is an ibm-db2 flavor, but it only claims to support DB2 LUW. The normal ODBC database extension works fine against DB2 for i though.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


-----Vicki Wilson <victwyh@xxxxxxxxx> wrote: -----
To: "web400@xxxxxxxxxxxx" <web400@xxxxxxxxxxxx>
From: Vicki Wilson <victwyh@xxxxxxxxx>
Date: 09/08/2016 08:47PM
Subject: [WEB400] PDO and PHP questions


Hi all,
We have some new templates available to us that include PDO. We are new to PHP. And even the folks with PHP experience do not have PDO experience.
We are running PHP on the ibmi and mostly connecting to DB2 on the ibmi. I found the library list issue and addressed it via: PDO::I5_ATTR_DBC_SYS_NAMING => true
If you use PDO do you have other options you typically set when connection to DB2 on the ibmi?
Does anyone have any thoughts on pros/cons of using PDO?
Also the naming of this option i5_ makes me think it's using the old toolkit? Does PDO use the old toolkit? Does it matter?
Thanks. Vicki Wilson



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.