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 D14733101F1 for ; Fri, 27 Jun 2003 10:21:18 +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 48545-01 for ; Fri, 27 Jun 2003 07:21:06 -0300 (ADT) Received: from frontend-2.cgpmail.ua.pt (mail.ua.pt [193.136.80.79]) by svr1.postgresql.org (Postfix) with ESMTP id 1E8A63101E8 for ; Fri, 27 Jun 2003 07:21:06 -0300 (ADT) X-UA: Message Inspected for Viruses by RAV Received: from [193.137.82.79] (HELO clopes) by frontend-2.cgpmail.ua.pt (CommuniGate Pro SMTP 4.0.6) with SMTP id 9789665 for pgsql-php@postgresql.org; Fri, 27 Jun 2003 11:21:04 +0100 Message-ID: <009601c33cd8$53a635b0$4f5289c1@clopes> Reply-To: "Carlos Lopes" From: "Carlos Lopes" To: "pgsql-php" References: <200306271002.h5RA21A01708@imap-serv.inrialpes.fr> Subject: Re: Configure PostgreSQL on PHP Date: Fri, 27 Jun 2003 11:17:10 -0700 Organization: GAGI - Universidade de Aveiro MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200306/24 X-Sequence-Number: 2088 I'm running php under Windows 2000 and on my php.ini file i uncomment the line regarding the pgsql dll, but doesn't seems to work. How do i compile php with the pgsql flag? Carlos Lopes ----- Original Message ----- From: "DIB Walid" To: "Adam Witney" ; "Carlos Lopes" ; "pgsql-php" Sent: Friday, June 27, 2003 3:01 AM Subject: Re: [PHP] Configure PostgreSQL on PHP I think he forget to compile php with the pgsql flag option. Walid Le Vendredi 27 Juin 2003 11:50, Adam Witney a écrit : > I don't think you need anything in your php.ini, you should be able to > connect like so: > > $connstr = "dbname= user= password= host="; > > $dbh = 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 connect > > 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