X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1AA423101E4 for ; Fri, 27 Jun 2003 10:02:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 41538-10 for ; Fri, 27 Jun 2003 07:02:06 -0300 (ADT) Received: from mx-serv.inrialpes.fr (mx-serv.inrialpes.fr [194.199.18.100]) by svr1.postgresql.org (Postfix) with ESMTP id C34C83101A2 for ; Fri, 27 Jun 2003 07:02:05 -0300 (ADT) Received: from imap-serv.inrialpes.fr (imap-serv.inrialpes.fr [194.199.18.72]) by mx-serv.inrialpes.fr (8.12.8/8.12.8) with ESMTP id h5RA22Yh002858; Fri, 27 Jun 2003 12:02:02 +0200 (MEST) Received: from there (chomolhari.inrialpes.fr [194.199.22.164]) by imap-serv.inrialpes.fr (8.11.6/8.11.3/ImagV2) with SMTP id h5RA21A01708; Fri, 27 Jun 2003 12:02:01 +0200 (MEST) Message-Id: <200306271002.h5RA21A01708@imap-serv.inrialpes.fr> Content-Type: text/plain; charset="iso-8859-1" From: DIB Walid Reply-To: walid.dib@inria.fr Organization: INRIA To: Adam Witney , Carlos Lopes , pgsql-php Subject: Re: Configure PostgreSQL on PHP Date: Fri, 27 Jun 2003 12:01:59 +0200 X-Mailer: KMail [version 1.3.1] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: McAfee uvscan 4241 RBL+ ORBS Found to be clean X-Archive-Number: 200306/27 X-Sequence-Number: 2091 I think he forget to compile php with the pgsql flag option. Walid Le Vendredi 27 Juin 2003 11:50, Adam Witney a =E9crit : > I don't think you need anything in your php.ini, you should be able to > connect like so: > > $connstr =3D "dbname=3D user=3D password=3D host= =3D"; > > $dbh =3D pg_connect($connstr); > > If this fails, what errors do you get? > > adam > > > Hi, can anyone tell me how to configure my php.ini file, so i can conne= ct > > to a pgsql database? > > > > I already have the database installed and is working under pgAdmin, but= i > > can't put the pg_connect() command working. > > > > Can someone help me? > > > > Thanks > > > > Carlos Lopes