PHP4 + odbc

Ludovit Koren Ludovit_Koren at tempest.sk
Wed Aug 9 16:01:05 UTC 2006



Hi,

I installed php4-odbc-4.4.2_2 and apache-2.0.55_4 via ports on FreeBSD
5.4-STABLE. The relevant part of the phpinfo() follows:

odbc
ODBC Support	enabled
Active Persistent Links 	0
Active Links 	0
ODBC library 	no value
ODBC_INCLUDE 	no value
ODBC_LFLAGS 	no value
ODBC_LIBS 	no value

Is it correct? Because I cannot connect to the database. I get 'Zero
Sized Reply' into the browser.

On the Linux machine with php5 I get

odbc
ODBC Support	enabled
Active Persistent Links 	0
Active Links 	0
ODBC library 	unixODBC
ODBC_INCLUDE 	-I/usr/include
ODBC_LFLAGS 	-L/usr/lib
ODBC_LIBS 	-lodbc

I installed the php4-odbc-4.4.2_2 via: 
cd /usr/ports/databases/php4-odbc ; make ; make install

and edited /usr/local/etc/odbc.ini and /usr/local/etc/odbcinst.ini

Am I missing something? What I am doing wrong?

Thank you very much for any hints.

Regards,

lk

PS: I googled and didn't find anything relevant...


More information about the freebsd-questions mailing list