hpux10 환경에서 작업해본것은 아니지만
$dbconn=ifx_connect("d39ofirm_test@pbkjoin_ttcp","informix","dbjoin1");
이것을 볼때..Informix 셋팅이 제대로 안된듯 하군요.
인포믹스가 설치된 디렉토리밑에 etc/sqlhosts 파일에 pbkjoin_ttcp을 등록하셨는지
그리고 d39ofirm_test란 DB를 만드셧는지 확인바람니다.
>>고영남 님께서 쓰시길<<
:: 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를 연동하고 계신분은
:: 도움을 주시면 감사하겠습니다..
::
|