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 4FEF55E3E30 for ; Sun, 8 Aug 2004 00:22:59 -0300 (ADT) 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 16649-07 for ; Sun, 8 Aug 2004 03:23:04 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by svr1.postgresql.org (Postfix) with ESMTP id 5516E5E46C4 for ; Sun, 8 Aug 2004 00:22:55 -0300 (ADT) Received: from l5130561 (c-67-161-35-239.client.comcast.net[67.161.35.239]) by comcast.net (rwcrmhc12) with SMTP id <20040808032301014004n8lhe>; Sun, 8 Aug 2004 03:23:01 +0000 To: pgsql-php Subject: Re: pg calls not working from within Apache References: <080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net> <4111E5FB.7060303@isogo.co.za> Message-ID: From: Balaji Prasad Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sat, 07 Aug 2004 20:22:59 -0700 In-Reply-To: <4111E5FB.7060303@isogo.co.za> User-Agent: Opera7.21/Win32 M2 build 3218 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.0 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS, MAILTO_TO_SPAM_ADDR, RCVD_IN_SORBS X-Spam-Level: ** X-Archive-Number: 200408/10 X-Sequence-Number: 2898 Thank You. I got it working shortly after posting it here. I indeed had multiple PHPs on the system and the one apache was detecting did not have pgsql support built in. It was just a matter of deleting the "wrong" php and things started working like a charm. On Thu, 05 Aug 2004 09:47:07 +0200, Justin Wyer wrote: > bp1974@comcast.net wrote: > >> Hi, >> I am trying to get a PostGresql <-->PHP<-->Apache working and am >> running to the well documented problem of : >> >> Fatal error: Call to undefined function: pg_connect() in >> /var/www/html/dbview.php on line 14 >> >> > Call to undefined function, means the pgsql extension is infact not > there. Do you have multiple php's on this machine? Do you have a > misconfigured php.ini lying around in your root directory, that php will > read when its been run from apache. Remember php running from apache > will read configuration files that php running from CLI wouldn't. > > cheers > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/