Installation

This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.2.1

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » https://pecl.php.net/package/informix.

To be able to use the functions defined in this module you must compile your PHP interpreter using the configure line --with-informix[=DIR], where DIR is the Informix base install directory, defaults to nothing.

add a note add a note

User Contributed Notes 2 notes

up
1
shotsheep at 163 dot com
10 years ago
For windows , apache server, php connect informix.       
I have try 4 days and finally success with it.       
My php env is apache 2.0, php 5.2, informix 09.40       
       
1) download php_ifx.dll from php home page (search with pecl-5.2 Win32), put php_ifx.dll in your php extension dir , in my case c:\php\ext .        
2) in php.ini add follows :        
extension=php_ifx.dll       
3) download informix cdsk 3.0TC for windows from ibm, install it and then run your php app which has informix connect operation, if apache server has a error dialog, then restart computer(because installation add a system variable path : C:\Program Files\IBM\Informix\Client-SDK\bin), after restart confirm this error not occure again. (in this step php page finally error  with "sqlstate = IX 000 sqlcode= -25560" because of informix server not set, we will solute it in next step)
4) run C:\Program Files\IBM\Informix\Client-SDK\bin\setnet32.exe change the values by following       
    4)-1 Tab Server Information   
        IBM Informix Server : informix server name
        HostName : informix  server ip address
        Protocolname : onsoctcp
        ServiceName : informix server port

    4)-2 Host Information   
        Current Host : informix  server ip address
    then click OK    
5) run your php app, then you can do any ifx_xxxxx informix db operation. (in windows apache env don't mind INFORMIXDIR var ect...)
up
0
jorge at zumerata dot com dot br
6 years ago
So, php_ifx.dll is not more supported, because the PECL site warnings "This package is not maintained".  I can't find the source-code to compile.

Best try is the PDO Informix.
To Top