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
운영게시판
최근게시물
PostgreSQL Q&A 7600 게시물 읽기
No. 7600
기본 연동 예제 에러원인?
작성자
souler(souler)
작성일
2009-01-30 20:59
조회수
6,380

<?php

$dbconn pg_connect("dbname=mary");

//connect to a database named "mary"


$dbconn2 pg_connect("host=localhost port=5432 dbname=mary");

// connect to a database named "mary" on "localhost" at port "5432"


$dbconn3 pg_connect("host=sheep port=5432 dbname=mary user=lamb password=foo");

//connect to a database named "mary" on the host "sheep" with a username and password


$conn_string "host=sheep port=5432 dbname=test user=lamb password=bar";

$dbconn4 pg_connect($conn_string);

//connect to a database named "test" on the host "sheep" with a username and password

?> 



테스트 디비 서버를 설치해서, 위와 동일하게 설정하고 php 연동을 해봤는데 안되더군요. 문제가 뭘까요?

이 글에 대한 댓글이 총 2건 있습니다.

접속하는 내용 전에

var_dump(function_exists('pg_connect'));

하셔서 php-pgsql 모듈이 있는지 확인해 보세요.

결과가 false 라고 찍히면 php-pgsql 모듈이 설치가 안 된 것 입니다

신기배(소타)님이 2009-01-31 06:38에 작성한 댓글입니다.

으흠, 어딘가에 , 모듈 설치파일이 있었는데 못찼겠네요..이런

souler(souler)님이 2009-01-31 13:14에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
7604psql 함수관련 하나만 질문드립니다 [2]
이만호
2009-02-05
7061
7603linux서버 Db에 접속 방법에 대해서.. [1]
hwan
2009-02-05
7203
7601이많은 함수중에.. [2]
souler
2009-02-02
9240
7600기본 연동 예제 에러원인? [2]
souler
2009-01-30
6380
7599포스트그레스 와 php 웹 연동하는 방법은? [1]
souler
2009-01-30
7237
7598postgresql의 로그감시툴 [4]
초보
2009-01-29
7661
7597김상기님 봐주세요. [3]
압피
2009-01-28
6418
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다