Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D78A463412F for ; Thu, 28 Jan 2010 09:36:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 63929-08-2 for ; Thu, 28 Jan 2010 13:36:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mail.postgresql.org (Postfix) with ESMTP id 56A1A633DC1 for ; Thu, 28 Jan 2010 09:36:11 -0400 (AST) Received: by ewy10 with SMTP id 10so774338ewy.3 for ; Thu, 28 Jan 2010 05:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=cVdAufK+On5kqPa9koutdNSt3lwmONIiE+P0KdSKxUw=; b=O0rGKYOUxbZ4R+7ybcsNYKCN2CAVV3ACiW/THQyOA9/Q5lbGpQrAgtVUdTSrJVWjG1 3cFeVXfCK3rFRPcrgdD1KRajNf9mXvnkOeF0OOxWDvadI4hemlSfmnss0Bz1pbDBHvof Up+Q5EVmFNUSnwRyVSEMsee2FE28+XCDCYVS4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ju941ZBwgiae3G1+PwSzzcR1Fog9ICeVP+dzL+2NbTsWNCNPUIljUp5QcODY9XcIRl nMd38w36CJEzDOn1QxznXO2N4Ogg2PN8qJbU0goSh0kQ7rfNar/UACOz93DQpknptzmq PMkX/VuMVPBtGlGuORNuayQ+Amxm1GL5aw0YE= MIME-Version: 1.0 Received: by 10.216.88.6 with SMTP id z6mr2455845wee.52.1264685769223; Thu, 28 Jan 2010 05:36:09 -0800 (PST) In-Reply-To: <4B60DC23.9020404@gmail.com> References: <4B60DC23.9020404@gmail.com> From: Gustavo Amarilla Santacruz Date: Thu, 28 Jan 2010 10:35:49 -0300 Message-ID: Subject: Re: Undefined function pg_connect() To: Chris Cc: pgsql-php@postgresql.org Content-Type: multipart/alternative; boundary=0016e6d9746e06ed47047e399af1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.727 tagged_above=-10 required=5 tests=AWL=0.871, BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201001/9 X-Sequence-Number: 4107 --0016e6d9746e06ed47047e399af1 Content-Type: text/plain; charset=ISO-8859-1 Thank you, Chris. I use the yum command and i got the following result: yum install php-pgsql Loaded plugins: presto, refresh-packagekit Setting up Install Process Package php-pgsql-5.3.1-1.fc12.i686 already installed and latest version Nothing to do What i can do? Thank you, in advance. On Wed, Jan 27, 2010 at 9:36 PM, Chris wrote: > Gustavo Amarilla Santacruz wrote: > >> Hello, all. >> >> I had installed php + postgresql on Fedora12. When the php script call to >> "pg_connect()", the following message is displayed: >> >> Fatal error: Call to undefined function pg_connect() in /var/www/html/ >> ..... Call Stack: 0.0325 487160 1. {main}() .... >> >> >> What i can do? >> > > You need the php-pgsql package if you installed via rpm. > > Once you have that installed, restart apache and see how you go. > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > > --------------------------- Gustavo Amarilla --0016e6d9746e06ed47047e399af1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you, Chris.

I use the=A0 yum command and i got the following r= esult:

yum insta= ll php-pgsql
Loaded plugins: presto, refre= sh-packagekit
Setting up Install Proc= ess
Package php-pgsql-5.3.1-1.fc12.i686 al= ready installed and latest version
Nothing to do

What i can do?

Thank you, in advance.



On Wed, Jan 27, 2010 at 9:36 PM, Chris <dmagick@gmail.com> wrote:
Gustavo Amarilla Santacruz wrote:
Hello, all.

I had installed php + postgresql on Fedora12. When the php script call to &= quot;pg_connect()", the following message is displayed:

Fatal error: Call to undefined function pg_connect() in /var/www/html/ ....= . Call Stack: 0.0325 487160 1. {main}() ....


What i can do?

You need the php-pgsql package if you installed via rpm.

Once you have that installed, restart apache and see how you go.

--
Postgresql & php tutorials
http://www.desig= nmagick.com/




-----------------------= ----
Gustavo Amarilla
--0016e6d9746e06ed47047e399af1--