PHP Doku:: Installation - ifx.installation.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenInformixInstallation/KonfigurationInstallation

Ein Service von Reinhard Neidl - Webprogrammierung.

Installation/Konfiguration

<<Anforderungen

Laufzeit-Konfiguration>>

Installation

Um die Funktionen dieses Moduls benutzen zu können, müssen Sie Ihren PHP-Interpreter mit der Option --with-informix[=DIR] kompilieren. DIR ist das Basis-Installationsverzeichnis von Informix, das in der Standardeistellung leer ist.


2 BenutzerBeiträge:
- Beiträge aktualisieren...
swood at networkip dot net
27.01.2010 21:23
As of PHP-5.1.0 informix support was moved to PECL
and removed from the PHP bundle, thus --with-informix
is no longer a valid configuration command.

http://cvs.php.net/viewvc.cgi/pecl/informix/

Contains the latest informix package.  For *NIX machines:
1) Download each file into the same directory
2) cd to that directory
3) phpize
4) ./configure
5) make
6) make install
7) move the generated informix.so file to your php modules directory
8) add extension=informix.so to php.ini
9) add [Informix] section to php.ini file with defintions
10) restart Apache

check phpinfo() for 'informix' with the details similar to:
informix 
Informix support enabled

Active Persistent links 0

Active links 0

ESQL/C Version 3.00

NOTE: Before running phpize to build the php informix module

export LDFLAGS=$INFORMIXDIR/lib/esql/checkapi.o

this will tell the compilation of the module to include this necessary file, for use in building the informix.so file
shotsheep at 163 dot com
17.11.2009 6:57
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...)



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)