That about sums it up. More info here:
http://yips.idevcloud.com/wiki/index.php/PHP/DB2Executive
Regards,
Mike Pavlak
Cell: (408)679-1011 Office: (708)233-5880
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Mark
Murphy/STAR BASE Consulting Inc.
Sent: Monday, September 28, 2015 11:57 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Cc: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] PHP Call to undefined function db2_connect() error
Unless your PHP server is on I, or you have the DB2 Connect product
installed on your Server, You can't use db2_connect to attach to DB2 on
IBM I. I have used ODBC successfully from a Windows server though.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----IBMiSoftwareEngineer <ibmisoftwareengineer@xxxxxxxxx> wrote: -----
To: web400@xxxxxxxxxxxx
From: IBMiSoftwareEngineer <ibmisoftwareengineer@xxxxxxxxx>
Date: 09/28/2015 09:52AM
Subject: [WEB400] PHP Call to undefined function db2_connect() error
We are trying to execute a PHP script on a Linux x86 server that accesses
the DB2 database on an IBM i and are receiving the following error. We
would appreciate any specific guidance.
PHP Fatal error: Call to undefined function db2_connect() in
/var/www/product/product_dropdown.php
Googling seems to point to installing PECL on the Linux server. The docs
usually reference IBM DB2 Universal Database and do not mention the IBM i
DB2 database so we are are unsure if this is the remedy.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.