Hello,
I have compiled Apache-1.3.22, Php-4.1.1, IBM DB2 and unixODBC2.2.0 on my Linux-Mandrake
for Php the configure options are like below;
./configure --without-mysql --with-ibm-db2=/usr/IBMdb2/V7.1 --with-apache=/usr/src/apache_1.3.22 --with-custom-odbc=/usr/local --with-iodbc -with-db -with-dba --enable-track-vars
Everything is all fine when i call the following php routine from an Internet Explorer window (index.php)
<?
$conn = odbc_connect("sample","zaksoy","zaksoy");
$query = "SELECT * FROM staff";
$result = odbc_Exec($conn,$query);
odbc_result_all($result);
odbc_close($conn);
?>
It runs the querry correctly and brings it to my explorer window.
However, from linux when i entered
"php index.php"
from the command
it says
<br>
<b>Fatal error</b>: Call to undefined function: odbc_connect() in <b>index.php</b> on line <b>3</b><br>
Could you help me?
Thanks
Zeki Aksoy