This document assumes that unixODBC has been built and installed, in this case in the default location /usr/local, and that both Apache and PHP have been untarred in the users home directory.
./configure --prefix=/www
#include <sql.h> #include <sqlext.h> #include <odbcinst.h>
CFLAGS="-I/usr/local/include" LDFLAGS= CUSTOM_ODBC_LIBS="-L/usr/local/lib -lodbc"
export CFLAGS LDFLAGS CUSTOM_ODBC_LIBS
./configure --with-apache=../apache_1.3.6 --with-custom-odbc=/usr/local --enable-track-vars
make make install
./configure --prefix=/www --activate-module=src/modules/php3/libphp3.a make make install
cp php3.ini-dist /usr/local/lib/php3.ini You can edit /usr/local/lib/php3.ini file to set PHP options. Edit your httpd.conf or srm.conf file and add: AddType application/x-httpd-php3 .php3
If this is of any help to someone, good, any problems let me know.
Nick Gorham