| Name | Size | Mode | Actions |
|---|---|---|---|
| index.html | 12311 | 0755 | editdlrm |
| odbcinst.html | 9657 | 0755 | editdlrm |
| php3.html | 1992 | 0755 | editdlrm |
| unixODBC.gif | 858 | 0755 | editdlrm |
| unixODBCsetup.html | 12891 | 0755 | editdlrm |
/usr/share/doc/unixODBC/doc/AdministratorManual/php3.html (1992B)
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=/wwwplus any other local config you need
#include <sql.h> #include <sqlext.h> #include <odbcinst.h>replacing /www with your desired apache install path
CFLAGS="-I/usr/local/include" LDFLAGS= CUSTOM_ODBC_LIBS="-L/usr/local/lib -lodbc"remember to export these variables
export CFLAGS LDFLAGS CUSTOM_ODBC_LIBS
./configure --with-apache=../apache_1.3.6 --with-custom-odbc=/usr/local --enable-track-varsplus any other local config you need then...
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