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 67FB39DC89F for ; Fri, 3 Feb 2006 01:03:51 -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 71200-08 for ; Fri, 3 Feb 2006 01:03:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.200]) by postgresql.org (Postfix) with ESMTP id 18B459DC833 for ; Fri, 3 Feb 2006 01:03:47 -0400 (AST) Received: by uproxy.gmail.com with SMTP id s2so171585uge for ; Thu, 02 Feb 2006 21:03:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Zq6PJKvirCc2iQelYP/BgVFsd1VFkk3FduUrFxM0UEoSK9jBB+cKEe7SAeroZDhlnhAy0MoAe+/7GfUl65XJ6fylpaNDpN0WagxaqZL6OkCyCaYZDunjwpsN3Y16wTiAkHBMt4+r6egCt9r8XcL0qt6WroybdBsMDRmOWH3PTsM= Received: by 10.66.225.15 with SMTP id x15mr753418ugg; Thu, 02 Feb 2006 21:03:47 -0800 (PST) Received: by 10.67.15.16 with HTTP; Thu, 2 Feb 2006 21:03:47 -0800 (PST) Message-ID: <4cb3dbb70602022103l57309b98l@mail.gmail.com> Date: Fri, 3 Feb 2006 00:03:47 -0500 From: Przemek Kowalczyk To: pgsql-php@postgresql.org Subject: Re: php and postgresql on windows In-Reply-To: <43E2E397.3030304@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4cb3dbb70602022015p38d6127aj@mail.gmail.com> <43E2E397.3030304@gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.786 required=5 tests=[AWL=0.786] X-Spam-Score: 0.786 X-Spam-Level: X-Archive-Number: 200602/3 X-Sequence-Number: 3419 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 =3D "./;F:\PHP\ext\" > > and I have taken out the semi-colon in > > extension=3Dphp_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. > >