Click to See Complete Forum and Search --> : Redhat 6.2 + PHP 4.02 + Openlink/iODBC


Anon
09-28-2000, 12:48 AM
Hi All,

I am having problem getting ODBC to work.

My configuration is:
Redhat 6.2
Apache 1.3.12
PHP 4.0.2
Openlink/iODBC
Oralce 8i

I have succesfully connecting to Oracle via openlink. odbctest connect succesfully. However, I cannot connect to openlink using odbc_connect function.

When I run the .php page with odbc_connect function, the browser returns "The document contains no data" dialog box. No error message is shown. The text that output on the same file is not shown also.

I suspect the php is compiling incorrectly. The php engine hangs when runing odbc_connect function. Here is the compiling option I have used:

./configure --with-apxs --with-openlink=/usr/local/openlink
(for openlink)

or ./configure --with-apxs --with-iodbc=/usr/local/lib
(for iodbc)

Both method will cause the same problem in using odbc_connect.

Moreover, I have configured LD_PRELOAD in order to start apache correctly. Apache works and other php function works.

The problem has caused a huge delay in my project schedule and I would need help asap.

William