===================================================================
# db2setup
# vi /etc/ld.so.conf
...
/usr/IBMdb2/V7.1/lib
...
# ldconfig
# cd php-4.0.5
# ./configure \
--prefix=/usr/local \
--with-apache=../apache \
--with-pgsql=/usr \
--with-oci8=/home/oracle \
--with-ibm-db2=/home/db2inst1/sqllib \
--with-openlink=/usr/local \
--enable-sigchild \
--with-interbase=/opt/interbase \
--with-java=/usr/local/java
# make
# make install
# cd ../apache
# ./configure \
--prefix=/usr/local/apache \
--activate-module=src/modules/php4/libphp4.a \
--includedir=/usr/local/include \
--mandir=/usr/local/man \
--disable-module=autoindex \
--disable-module=status
# make
# service httpd stop
# make install
# service httpd start
===================================================================
<?PHP
phpinfo();
?>
여기서 나온 결과가 ODBC Support 라는게 나오면 됩니다. ODBC Library = openlink 로 되어있네요. 그리고 ODBC 관련 함수 쓰면 되네요..
|