Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A610A633CF6 for ; Wed, 27 Jan 2010 20:41:21 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06554-05-5 for ; Thu, 28 Jan 2010 00:41:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gunduz.org (ns1.gunduz.org [77.79.103.58]) by mail.postgresql.org (Postfix) with ESMTP id 04D5C6339FD for ; Wed, 27 Jan 2010 20:41:02 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.gunduz.org (Postfix) with ESMTP id BC7F4400046; Thu, 28 Jan 2010 02:45:40 +0200 (EET) X-Virus-Scanned: amavisd-new at mail.gunduz.org Received: from mail.gunduz.org ([127.0.0.1]) by localhost (mail.gunduz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87jm3tywt+xc; Thu, 28 Jan 2010 02:45:30 +0200 (EET) Received: from [192.168.100.5] (evim.gunduz.org [78.189.47.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gunduz.org (Postfix) with ESMTPSA id 3DC56400041; Thu, 28 Jan 2010 02:45:30 +0200 (EET) Subject: Re: Undefined function pg_connect() From: Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= To: Gustavo Amarilla Santacruz Cc: pgsql-php@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 28 Jan 2010 02:40:47 +0200 Message-ID: <1264639247.2016.336.camel@hp-laptop2.gunduz.org> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/5 X-Sequence-Number: 4103 On Wed, 2010-01-27 at 21:25 -0300, Gustavo Amarilla Santacruz wrote: > 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() If you are installing from RPMs, you also need to install php-pgsql package. If you are installing from sources, you will need to recompile with PostgreSQL support. -- Devrim GÜNDÜZ, RHCE Command Prompt - http://www.CommandPrompt.com devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz