note 28894 added to function.ifx-connect
| From: | twins3n at yahoo dot com | Date: | Mon, 27 Jan 2003 11:51:34 +0000 |
| Subject: | note 28894 added to function.ifx-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42811@lists.php.net to get a copy of this message | ||
Informix is a real dog to figure out because of the stupid names used for variables. After
struggling for ages I figured it out....
I was connecting to an Informix SE 5.07 db.
INFORMIXSERVER is the first column of the entry in the sqlhosts file NOT the IP or name of the
server.
INFORMIXHOME is the base directory of the client installation eg. /opt/informix
Set these variables in /etc/profile and PassEnv them in your Apache httpd.conf file to php.
My connect string is like this:
ifx_connect("/home/cserver/cdb/csdb@local_se, "user", "pass")
The /home/cserver/cdb/csdb is the path to the db file.
local_se is the same as INFORMIXSERVER
I hope this helps some people since the Informix documentation really sucks.
--
http://www.php.net/manual/en/function.ifx-connect.php
http://master.php.net/manage/user-notes.php?action=edit+28894
http://master.php.net/manage/user-notes.php?action=delete+28894
http://master.php.net/manage/user-notes.php?action=reject+28894