ID:               39119
 User updated by:  inform at hcuv dot sacyl dot es
 Reported By:      inform at hcuv dot sacyl dot es
 Status:           Open
 Bug Type:         Informix related
 Operating System: HP-UX 11i (11.11)
 PHP Version:      5.1.6
 New Comment:

Accesing from another Unix server (HP-UX 3) with Apache Web Server
1.3.31 and  PHP 4.3.4 it's possible to connect to the IDS1 server
without problems.


Previous Comments:
------------------------------------------------------------------------

[2006-10-10 18:41:04] inform at hcuv dot sacyl dot es

Description:
------------
Hello.
First of all sorry about my english. I'm Spanish.
I have two HP-UX server with Apache 2.0.58 and PHP compiled as a shared
object with informix CSDK 2.81TC1. Each server has an Informix Online
Dynamic Server 7.31 running. The connectivity between IDS server works
fine from informix dbaccess utility.
When i connect to the informix server located into the unix server 
(HP-UX 1) where apache is configured and running i have no problem to
connect and execute any query to access the IDS(1) . When I try to
connect to the other unix server (HP-UX 2) with another IDS 7.31 (IDS
2) running, i can't connect to the remote database host , the error
that the web page shows is SQLCODE=-908.
Doing the same from the other Unix server (HP-UX 2) the situation is
the same, accessing to the local IDS 2 without problem, but can't
connect to the remote database (IDS 1).
I don't know  if it's necessary to use the PDO_INFORMIX function to
access Informix Database from PHP 5.1.6, or if this is an environment
variable problem.

Thank's a lot.

Reproduce code:
---------------
if (!$id_con = ifx_connect("[EMAIL PROTECTED]","username","password"))
{echo "No te conectas.";}
else 
{Echo "Conectado con ".$id_con."<br>";
}

Expected result:
----------------
Conectado con Resource id #2

Actual result:
--------------
Warning: ifx_connect() [function.ifx-connect]: E [SQLSTATE=08 004
SQLCODE=-908] in /testpage.php on line 17
No te conectas.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39119&edit=1

Reply via email to