X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 679B09DCC9B for ; Fri, 3 Feb 2006 01:19:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73784-10 for ; Fri, 3 Feb 2006 01:19:45 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [216.148.227.151]) by postgresql.org (Postfix) with ESMTP id 038479DCBEE for ; Fri, 3 Feb 2006 01:19:43 -0400 (AST) Received: from ramlap (unknown[24.2.109.170](misconfigured sender)) by comcast.net (rwcrmhc11) with SMTP id <20060203051943m11005v53ve>; Fri, 3 Feb 2006 05:19:43 +0000 From: "Randy Moller" To: "'Przemek Kowalczyk'" , Subject: Re: php and postgresql on windows Date: Thu, 2 Feb 2006 22:19:41 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 thread-index: AcYof08ehdYouzsBReKv62Hn1Uy1RwAAZk2A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <4cb3dbb70602022103l57309b98l@mail.gmail.com> Message-Id: <20060203051943.038479DCBEE@postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.786 required=5 tests=[AWL=-0.460, DNS_FROM_RFC_POST=1.44, DNS_FROM_RFC_WHOIS=0.879, MSGID_FROM_MTA_ID=0.927] X-Spam-Score: 2.786 X-Spam-Level: ** X-Archive-Number: 200602/5 X-Sequence-Number: 3421 Actually, the php_pgsql.dll file does NOT natively install on the windows CGI distribution. If you installed using the "installer", then download the zip distribution and extract the dll from the ext folder. Next, if you haven't already done so, uncomment the extension line on php.ini, and you should be good to go. If you installed originally from the zip/tar/rar file, then it should be there, yes. Hope this helps. Randy -----Original Message----- From: pgsql-php-owner@postgresql.org [mailto:pgsql-php-owner@postgresql.org] On Behalf Of Przemek Kowalczyk Sent: Thursday, February 02, 2006 10:04 PM To: pgsql-php@postgresql.org Subject: Re: [PHP] php and postgresql on windows Yes and Yes. On 03/02/06, Chris wrote: > Hi, > > Does the php_pgsql.dll file exist in the f:\php\ext folder? > > Did you restart your webserver after making this change? > > Przemek Kowalczyk wrote: > > I am having trouble making php have postgresql support. I saw a post > > saying that if it is setup correctly you should see a psql entry. in > > info.php. I see no such entry. > > My postgresql is setup correctly because I can connect to it, view > > tables etc. I am trying to setup php5, I installed it with apache2 > > and php itself works. But I cannot get postgresql part to work. I > > have a simple script that I found when looking up the pg_connect > > function but I get Fatal error: Call to undefined function > > pg_connect() in F:\Program Files\Apache Group\Apache2\htdocs\index.php > > on line 2 > > I also tried phppgadmin and it also gives me an error saying that > > "Your PHP installation does not support PostgreSQL. You need to > > recompile PHP using the --with-pgsql configure option." > > > > > > In my php.ini I have > > extension_dir = "./;F:\PHP\ext\" > > and I have taken out the semi-colon in > > extension=php_pgsql.dll > > > > Is that all that's required to get the pg functions to work? > > > > I tried inserting this dl('php_pgsql.dll'); into my script and still > > says undefined function. > > ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.0/248 - Release Date: 2/1/2006