Build PHP with ODBC support

Zonakusu

New member
Joined
Feb 12, 2009
Messages
1
Hi!

I've been trying to get ODBC support under PHP for the whole day now. I can't get it to work though.

I started with installing unixODBC in the /usr/local/bin/unixODBC-2.2.14 and compiled it there. (I think I compiled it to the same directory since i cant find it anywhere else)

Next I editted the PHP config file for custombuild and added the following to lines:

--with-odbc \
--with-unixODBC=shared,/usr/local/lib/unixODBC-2.2.14 \

After that I found several libodbc*.so / .a / la files (about 20 of them). So I thought ODBC should work. But when I try a simple odbc_connect it fails:
http://cookiesys.nl/test.php

In my phpinfo() you can see the configure string:
http://cookiesys.nl/phpinfo.php

I really hope you can help me since I really need ODBC on my server.

Thanks in advance! :)

Jim
 
Back
Top