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 870719DCB9B for ; Fri, 3 Feb 2006 01:01:17 -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 72072-07 for ; Fri, 3 Feb 2006 01:01:15 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by postgresql.org (Postfix) with ESMTP id 5194F9DC81E for ; Fri, 3 Feb 2006 01:01:14 -0400 (AST) Received: by wproxy.gmail.com with SMTP id i28so567731wra for ; Thu, 02 Feb 2006 21:01:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=VHjgX4TVXNSO3/bjy1vguu2WkqSyHijbn1DCX/bGdOgr25M2KV0+deX1cqoysWcSqYFgC10TN/fYGLs+AIhA9JG/dEttaFMdXQMcMJDuKPdfwI+sJeuPodiezzLwH1dkXcS7i/UnvDJnCR+oh1DeNzwjYaLS1NplkRC2o/nAlSQ= Received: by 10.54.144.2 with SMTP id r2mr1855444wrd; Thu, 02 Feb 2006 21:01:13 -0800 (PST) Received: from ?10.1.1.21? ( [203.217.18.65]) by mx.gmail.com with ESMTP id 28sm1098921wrl.2006.02.02.21.01.12; Thu, 02 Feb 2006 21:01:13 -0800 (PST) Message-ID: <43E2E397.3030304@gmail.com> Date: Fri, 03 Feb 2006 16:01:11 +1100 From: Chris User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Przemek Kowalczyk CC: pgsql-php@postgresql.org Subject: Re: php and postgresql on windows References: <4cb3dbb70602022015p38d6127aj@mail.gmail.com> In-Reply-To: <4cb3dbb70602022015p38d6127aj@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.144 required=5 tests=[AWL=0.144] X-Spam-Score: 0.144 X-Spam-Level: X-Archive-Number: 200602/2 X-Sequence-Number: 3418 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.