If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Fatal error: Call to undefined function ODBC_connect()

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-28-11, 23:26
tempe tempe is offline
Registered User
 
Join Date: Oct 2010
Posts: 27
Fatal error: Call to undefined function ODBC_connect()

Hello

I have been looking solutions for error above.
I have no idea what is the problem and how to solve it.

Server Info
Linux Debian
Apache
PhP5
DB2 Express-C 9


Thank
Reply With Quote
  #2 (permalink)  
Old 12-29-11, 02:25
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Server info is very interesting. The error is coming from the windows-client I presume?
Did you install the db2-client on the windows machine? If so try:
Code:
catalog tcpip node db2_node remote 192.168.0.100 server 50000 ;
catalog database sample at node db2_node ;
catalog system odbc data source sample     ;
I made the following assumpions:
- your debian server's TCP/IP number is 192.168.0.100
- you are making a connection to the sample database on your debian server
- the instance managing the sample database is listening to the default port number 50000

If there is no window client involved you do not need ODBC at all. Then you'll need this: Connecting PHP applications to IBM DB2 Universal Database

Last edited by dr_te_z; 12-29-11 at 02:26. Reason: typed "debain" instead of "debian" :)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On