Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 21128634905 for ; Mon, 3 Aug 2009 16:52:45 -0300 (ADT) 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 70019-03 for ; Mon, 3 Aug 2009 19:52:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mail.postgresql.org (Postfix) with ESMTP id 96E806347DA for ; Mon, 3 Aug 2009 16:52:34 -0300 (ADT) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id A5EF6EBC0A; Mon, 3 Aug 2009 15:52:32 -0400 (EDT) Date: Mon, 3 Aug 2009 15:52:31 -0400 From: Bill Moran To: Carol Walter Cc: pgsql-php@postgresql.org Subject: Re: pg_query_params version? Message-Id: <20090803155231.4e7da4f3.wmoran@potentialtech.com> In-Reply-To: <6D3355E2-AF8B-4F90-8A7C-078FF2D186FB@indiana.edu> References: <6D3355E2-AF8B-4F90-8A7C-078FF2D186FB@indiana.edu> Organization: Bill Moran X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: 200908/3 X-Sequence-Number: 4044 In response to Carol Walter : > Which version of PHP does pg_query_params need? I wrote a PHP > iprogram using PHP 5. My client has PHP 4 something. I got an error > on the first line that contains a pg_query_params function. Is the > problem likely to be the difference in the versions or should I look > elsewhere? > > The error is... > > Fatal error: Call to undefined function: pg_query_params() in / > projects/ivl/www/ssl/admin/index.php on line 220 You already know the problem. The PHP docs: http://us2.php.net/manual/en/function.pg-query-params.php claim: (PHP 5 >= 5.1.0) Thus that function is only in version 5.1.0 and newer. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/