×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




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.

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-2026 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.