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 4C4E131012C for ; Fri, 27 Jun 2003 14:26:28 +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 82510-04 for ; Fri, 27 Jun 2003 11:26:16 -0300 (ADT) Received: from eul0000240.eu.verio.net (eul0000240-pip.eu.verio.net [213.130.62.10]) by svr1.postgresql.org (Postfix) with ESMTP id BEC41310293 for ; Fri, 27 Jun 2003 11:26:15 -0300 (ADT) Received: from pollenation.net (public1-leed1-4-cust62.leed.broadband.ntl.com [80.4.163.62]) by eul0000240.eu.verio.net (8.11.6/8.11.6) with ESMTP id h5REQFE28050 for ; Fri, 27 Jun 2003 14:26:15 GMT Message-ID: <3EFC5624.6030301@pollenation.net> Date: Fri, 27 Jun 2003 15:35:16 +0100 From: Matt Goodall User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030621 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-php Subject: Re: Configure PostgreSQL on PHP References: <200306271002.h5RA21A01708@imap-serv.inrialpes.fr> <009601c33cd8$53a635b0$4f5289c1@clopes> In-Reply-To: <009601c33cd8$53a635b0$4f5289c1@clopes> X-Enigmail-Version: 0.74.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Archive-Number: 200306/26 X-Sequence-Number: 2090 Hi, According to a colleague, as well as uncommenting the line in php.ini you also need to copy php_pgsql.dll to somewhere in the PATH (i.e. c:\winnt\system32). The php_pgsql.dll DLL should be in your PHP installation somewhere, you'll have to search for it. Hope this helps, Matt Carlos Lopes wrote: >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 >>> >>> > > >---------------------------(end of broadcast)--------------------------- >TIP 7: don't forget to increase your free space map settings > > -- Matt Goodall, Pollenation Internet Ltd e: matt@pollenationinternet.com t: 0113 2252500