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




Man...I'm having a problem connecting to a remote i using the
db2_connect.
My PHP code works fine when I connect to *LOCAL. I'd like to run my PHP
code
on the same i as it is now, but have the db2_connect point to a different
i.
What do I need to do to access the other i? I've googled and checked out
the
Zend manual, but the connection fails regardless of my technique. Anyone
have an example? Do I need a server running that would normally run at
port
50000? Do I use the database name in relational database directory?
Thanks!

Bad news. You need to have a licensed feature called "DB2 Connect" to use
the db2 functions remotely. You can use the generic ODBC functions to
connect though.

<rant>
Frankly, I feel as though IBM needs to plug this hole and include a scaled
back version of DB2 Connect for those of us that just want to use db2
functions remotely and don't give a rip about all the other bells and
whistles that DB2 Connect allows.
</rant>,

My recommendation would be to write a database abstraction layer (or use
Zend Framework can do that for you) so you can easily switch back and forth
between DB2 and ODBC functions depending on whether your are running
remotely or locally. That is what I plan to do.


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.