× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

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.