Page 1 of 1

how to enable odbc in lampp?

PostPosted: 03. December 2013 03:37
by faboc
i have already installed lampp 1.8.1 in my ubuntu 12.04.

in my phpinfo(), i can't see odbc or PDO ODBC. So i execute odbc_connect in my PHP code and then show a message 'Fatal error: Call to undefined function odbc_connect() in /opt/lampp/htdocs/...'

How to fixed it?

i am using progress database version 10.2A, PHP Version 5.4.7.
OS version : Ubuntu 12.04.

Re: how to enable odbc in lampp?

PostPosted: 06. December 2013 23:29
by Nobbie
faboc wrote:How to fixed it?


You cannot fix it.

Ask the Xampp team in order to include PDO ODBC when compiling PHP (obviously this is not done for current Xampp Linux Releases). There is no option for including ODBC additionally.

As i dont think that you will get a positiv answer on that quickly (or ever...), you should not use Xampp on Linux, instead install the packages that are coming with your distribution. Or try a Windows Xampp - ODBC is integrated in Xampp for Windows.