Re: Informix SE 7.2 and PHP3/ODBC
Posted in 1999
> i want to acces my informix se database using ODBC within PHP scripts on > b) linux/apache > > i'm using following informix products: > > INFORMIX-SE 7.24.UC5 for Linux > informix 4gl 7.20 ud7 for Linux > why don't you use PHP with the informix-module ? - you just have to compile PHP with the informix-option. (ESQL has to be installed - ClientSDK should be for free). You have to configure PHP as follows: (look at configure --help + INSTALL.DSO) php-source-dir/.configure (...other options) --with-informix=/opt/informix (if it is there) (the $INFORMIXDIR must be set.) make make install I prefer to build apache with dynamic module loading (mod_so). So you can use apxs to load php into apache. With this option, you only have to compile the modules and copy them to the apache/libexec-directory. -> You need not to recompile apache after changes in the modules. see php-source-dir/INSTALL.DSO. The Informix-LIBs should be in /usr/lib (otherwise apache cannot start up). Hope that helps, Martin Gutjahr