X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4D8B2564B2 for ; Fri, 11 Mar 2005 02:01:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 33098-10 for ; Fri, 11 Mar 2005 02:00:58 +0000 (GMT) Received: from hosting.planetargon.com (hosting.planetargon.com [69.44.62.20]) by svr1.postgresql.org (Postfix) with SMTP id D70A256522 for ; Fri, 11 Mar 2005 02:00:54 +0000 (GMT) Received: (qmail 9439 invoked by uid 510); 11 Mar 2005 02:00:51 -0000 Received: from unknown (HELO ?192.168.1.101?) (robby@planetargon.com@67.160.164.97) by hosting.planetargon.com with SMTP; 11 Mar 2005 02:00:51 -0000 Subject: Re: Can't Get PHP Going on PostgreSQL From: Robby Russell To: "Van Ingen, Lane" Cc: pgsql-php@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: PLANET ARGON Date: Thu, 10 Mar 2005 18:00:49 -0800 Message-Id: <1110506449.20824.362.camel@linus> Mime-Version: 1.0 X-Mailer: Evolution 2.1.6 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/36 X-Sequence-Number: 3051 On Thu, 2005-03-10 at 16:08 -0500, Van Ingen, Lane wrote: > I am new to both PHP and PostgreSQL. Trying to install PHP and PostgreSQL 8.0 on Slackware Linux 10.0.0 . > I am getting the following error out of Apache: > "Fatal Error: Call to undefined function: pg_connect() ...." > > PostgreSQL is up and running, and appears to be fine. > > Have found a lot of web references to this; the best was http://us2.php.net/pgsql . But am unable > to proceed because I am not sure what to do. > > Facts about what I have installed: > - Installed PHP from Slackware binary; I made no special efforts to compile it. According to a PHP utility > function (phpinfo()), looks like it might be configured for MySQL already. > - version info: > PHP = 4.3.7 > Linux kernel = 2.4.26 > Apache = 1.3.31 > > How do I find these functions and install OR configure the php.ini file? > > I don't think this is hard to fix, but it is beating me up right now. What I need to find a blow-by-blow of > what to do. Can somebody help me? You need to install with pgsql support. in your configure: ./configure ... --with-pgsql -Robby -- /*************************************** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | robby@planetargon.com * 503.351.4730 | blog.planetargon.com * PHP-PostgreSQL Hosting & Development * open source solutions - web hosting ****************************************/