Search code examples
phplinuxapache2odbcunixodbc

can't get odbc working in apache


I installed unixODBC by using apt-get install, and now when I try to use odbc_connect() is still get this error.

PHP Fatal error:  Call to undefined function odbc_connect()

what do i need to do to configure it to work with php? I have been looking online but I can't really figure it out.


Solution

  • I think you need to install php5-odbc also. unixODBC provides the driver manager, but you need the PHP code that calls it.