PHP+informix -922, -25582 errors
From: Makovský Vladimír (vladimir.makovsky_at_semd.cz)
Date: 10/27/03
- Next message: Runner: "Webmasters, authenticate your users with SAINTlogin - it's FREE !"
- Previous message: Barton: "Re: Form security for database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Oct 2003 11:51:25 +0100
Hi,
I have Apache 1.3.2 + PHP 4.3.2 + Informix (server 9.20, csdk 2.80) compiled
on HP-UX B.11.00 U 9000/800.
(./configure' '--prefix=/usr/apache1.3/php-4.3.2' '--without-mysql'
'--with-apache=/dlf1/src/apache_1.3.27/' '--with-informix=/usr/csdk2.80'
'--with-config-file-path=/usr/apache1.3/php-4.3.2')
apache runs with this identity:
User apache
Group or
I have simple script i.php with simple query to database:
1 <html>
2 <?php
3 if (!$connect_id = ifx_pconnect("db@hp-ux11","login","password")) {
4 echo "Unable to connect to Informix Database\n";
5 exit();
6 }
7
8 $result = ifx_query("select oscis,jm_prijm from idaido", $connect_id) or
die ("couldn't execute the query");
9 ifx_htmltbl_result($result, "border=\"1\"");
10 ifx_free_result($result);
11 ifx_close($connect_id);
12 ?>
13 </html>
Sometimes (that means I do not know how to force this error), but quite
often I get either this message (more often):
Warning: ifx_pconnect(): E [SQLSTATE=IX 000 SQLCODE=-922] in
/dlf1/home/apache/www/db/i.php on line 3
Unable to connect to Informix Database
or this message:
Warning: ifx_query(): Prepare fails (E [SQLSTATE=IX 000 SQLCODE=-25582]) in
/dlf1/home/apache/www/db/i.php on line 8
couldn't execute the query
_Sometimes the script returns correct result_. Explanation of this error
through
the command finderr doesn't help me much:
-922 Cannot get name of current working directory.
A problem exists with the current working directory on this system or
on another computer system that your application is using. Possibly
your account does not have read access to the directory, or possibly
the file system that contains it is improperly mounted. Exit your
application, and retry. If the problem persists, see your system
administrator for assistance.
Sometimes it works so I think that the access rights should be ok.
Everything is on the same server. I am the administrator ;-).
-25582 Network connection is broken.
This error might indicate that the database server has terminated, or a
problem might exist on the network itself. Check that the network is
functioning and that the server is still running.
IDS 9.20 is up and network is functioning (when I run onstat -p after
the execution of i.php)
Any suggestions?
--v.m.
- Next message: Runner: "Webmasters, authenticate your users with SAINTlogin - it's FREE !"
- Previous message: Barton: "Re: Form security for database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|