[unixODBC-support] Trouble reading odbc.ini?

Nick Gorham nick at easysoft.com
Sat Sep 11 09:07:15 BST 2004

Derrick fogle wrote:
> System: Linux Enterprise 8
> Apache: Apache/1.3.23
> PHP: Version 4.1.2
> unixODBC: ???
> Special Driver: Progress_SQL92_Driver
> User: Linux "Newbie"
> Trying to get PHP's ODBC to talk to Progress database.
> The SQLEplorer that is installed with the Progress Client works OK, but 
> it appears that something is wrong with the unixODBC as called from 
> within PHP. It appears that the odbc.ini file simply never gets read, 
> and so when I try to connect with an "odbc_connect($dsn,$user,$pass)" 
> statement I get this:

I sould start with isql and check that the ODBC setup works

isql -v dsn user password

You can also use strace to check whats being opened

strace isql -v dsn user password 2>st.log

Then have a look in st.log for calls ro open. strace traces system 
calls, so you can see what files are opened.

Nick Gorham
Easysoft Limited

More information about the unixODBC-support mailing list