database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
ㆍInformix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Informix Q&A 925 게시물 읽기
No. 925
hpux10,11+마파치+php+informix 연동시 질문..
작성자
고영남
작성일
2001-07-31 22:36
조회수
3,165

hpux10 에서 apache 1.3.19 + php4.0.6 + informix를 설치하였습니다.

정적으로 컴파일했고 phpinfo() 함수로 브라우저에서 출력했을 때

아래와 같이 인포믹스의 환경이 나옵니다.

 

###################################################################

Informix

 

Informix support enabled

Persistent links 0

Total links 0

ESQL/C Version 7.24

 

Directive Local Value Master Value

ifx.allow_persistent On On

ifx.blobinfile 0 0

ifx.byteasvarchar 1 1

ifx.charasvarchar 1 1

ifx.default_host no value no value

ifx.default_password no value no value

ifx.default_user no value no value

ifx.max_links Unlimited Unlimited

ifx.max_persistent Unlimited Unlimited

ifx.nullformat 0 0

ifx.textasvarchar 1 1

###################################################################

 

일반적인 php 문장이나 for 문등은 테스트 했을때 제대로 나옵니다 하지만

인포믹스와 연결하려고 아래와 같은 소스를 작성했을때는

 

#####################################################################

<?

 

$dbconn=ifx_connect("d39ofirm_test@pbkjoin_ttcp","informix","dbjoin1");

echo("dbconn:$dbconn<br>");

 

$query="select id from test";

echo("query:$query<br>");

 

$res_id=ifx_query($query,$dbconn);

echo("res_id:$res_id<br>");

 

?>

#####################################################################

 

함수 에러나 warning 에러가 아니라 브라우저상에서

 

" http://129.1.xx.xx/connect.php 인터넷 사이트를 열 수 없습니다.

서버에서 잘못되었거나 인식되지 않은 응답을 보내왔습니다. "

 

란 경고창이 뜹니다.

 

이상한건 위의 php 소스에서 첫줄인

 

$dbconn=ifx_connect("d39ofirm_test@pbkjoin_ttcp","informix","dbjoin1");

 

문장을 주석처리하면 브라우저에 아래와 같이 echo()문이 실행된 결과가 나옵니다.

물론 커넥션 id 는 공백으로 나오지만요..

 

#########################

 

dbconn:

query:select id from test

 

Warning: Supplied argument is not a valid IFX link resource in /home/pbkweb/wwwhome/connect.php on line 9

res_id:

 

########################

 

hpux 10 또는 11 버전에서 apache 와 php, informix를 연동하고 계신분은

도움을 주시면 감사하겠습니다..

[Top]
No.
제목
작성자
작성일
조회
930파워빌더스크립트에서 remote select 하는방법[급]
김명희
2001-08-07
3201
927인포믹스 odbc설정을 위해서는 무엇을.... TT
박민규
2001-08-03
3966
926ifx_connect error
생초보
2001-08-01
3181
928┕>Re: ifx_connect error
ejoh
2001-08-06 11:33:13
3705
925hpux10,11+마파치+php+informix 연동시 질문..
고영남
2001-07-31
3165
935┕>Re: hpux10,11+마파치+php+informix 연동시 질문..
2001-08-08 17:10:08
3570
924sp에서는 시간이 멈춰있다.
최정은
2001-07-31
3273
921apache+php4+informix 을 설치하고 싶은데...
강동엽
2001-07-30
3613
920ifx_connect()가 안되여.
cshangel
2001-07-30
3474
923┕>Re: ifx_connect()가 안되여.
처음이
2001-07-31 10:13:18
3864
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다