Lagos, Ioannis | 20 Aug 11:25

SQLServer - No Connection

I have installed the unixODBC-2.2.12, freetds-0.82 on a RH 2.6.9-55.EL
x86_64, Apache/2.0.52 (Red Hat), PHP/4.3.9

I use odbc to connect to a SQL Server.

tsql  is connecting successfully.

isql -v myDSN is connecting successfully.

A php script executed from shell successfully and I get results.

But, if the same php script is executed from the Browser, I get an error
connection!

(Trying to connect from php with odbc_connect.)

Have any idea for this ?

My Environment is as:

Libraries located in /usr/local/lib

Env var          LD_LIBRARY_PATH = /usr/local/lib

      FREETDS=/usr/local/etc

>From phpinfo I get the following info:

--with-unixODBC=shared,/usr'

--prefix=/usr

ODBC

ODBC library 

unixODBC 

ODBC_INCLUDE 

-I/usr/include 

ODBC_LFLAGS 

-L/usr/lib 

ODBC_LIBS 

-lodbc 

I appreciate if anybody can help.

Thanks in advance,

John Lagos

Gmane