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 55427D1B1AE for ; Thu, 5 Aug 2004 04:47:33 -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 49903-03 for ; Thu, 5 Aug 2004 07:47:32 +0000 (GMT) Received: from candice.isogo.co.za (outsmtp.isogo.co.za [196.15.191.4]) by svr1.postgresql.org (Postfix) with ESMTP id B4859D1B17B for ; Thu, 5 Aug 2004 04:47:22 -0300 (ADT) Received: (qmail 15139 invoked by uid 1035); 5 Aug 2004 07:47:10 -0000 Received: from justin@isogo.co.za by mail by uid 89 with qmail-scanner-1.20rc3 (clamscan: 0.60. spamassassin: 2.60. Clear:RC:1:. Processed in 0.232191 secs); 05 Aug 2004 07:47:10 -0000 Received: from host29.isogo.co.za (HELO ?10.5.200.29?) (justin@isogo.co.za@196.15.191.29) by candice.echelon.z with RC4-MD5 encrypted SMTP; 5 Aug 2004 07:47:07 -0000 Message-ID: <4111E5FB.7060303@isogo.co.za> Date: Thu, 05 Aug 2004 09:47:07 +0200 From: Justin Wyer User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-php Subject: Re: pg calls not working from within Apache References: <080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net> In-Reply-To: <080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Level: * X-Archive-Number: 200408/5 X-Sequence-Number: 2893 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