|
*This message was transferred with a trial version of CommuniGate(r) Pro*
Man...I'm having a problem connecting to a remote i using thedb2_connect.
My PHP code works fine when I connect to *LOCAL. I'd like to run my PHPcode
on the same i as it is now, but have the db2_connect point to a differenti.
What do I need to do to access the other i? I've googled and checked outthe
Zend manual, but the connection fails regardless of my technique. Anyoneport
have an example? Do I need a server running that would normally run at
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.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
As an Amazon Associate we earn from qualifying purchases.
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.