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 D89853101C8 for ; Fri, 27 Jun 2003 09:52:32 +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 46091-02 for ; Fri, 27 Jun 2003 06:52:22 -0300 (ADT) Received: from mailhub1.sghms.ac.uk (firewall.sghms.ac.uk [194.82.50.2]) by svr1.postgresql.org (Postfix) with ESMTP id 286423101FA for ; Fri, 27 Jun 2003 06:52:22 -0300 (ADT) Received: from [194.82.51.24] (helo=imail) by mailhub1.sghms.ac.uk with esmtp (Exim 4.12) id 19Vpwl-0001hM-00; Fri, 27 Jun 2003 10:55:11 +0100 Received: from [172.16.20.3] (mrc1-003.sghms.ac.uk [172.16.20.3]) by imail.sghms.ac.uk (iPlanet Messaging Server 5.1 HotFix 0.7 (built May 7 2002)) with ESMTPA id <0HH4009KWWNB9L@imail.sghms.ac.uk>; Fri, 27 Jun 2003 10:49:59 +0100 (BST) Date: Fri, 27 Jun 2003 10:50:29 +0100 From: Adam Witney Subject: Re: Configure PostgreSQL on PHP In-reply-to: <006e01c33cd2$d3d1da10$4f5289c1@clopes> To: Carlos Lopes , pgsql-php Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Entourage/10.1.1.2418 X-MailScanner-Information: Please contact sysadmin at sghms.ac.uk for more information X-MailScanner-MH1: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-100.4, required 5, IN_REP_TO, USER_AGENT_ENTOURAGE, USER_IN_WHITELIST) X-Archive-Number: 200306/23 X-Sequence-Number: 2087 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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.