Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F335A635A13 for ; Mon, 3 Aug 2009 17:11:54 -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 73313-03-7 for ; Mon, 3 Aug 2009 20:11:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mail.postgresql.org (Postfix) with ESMTP id 395CE634A10 for ; Mon, 3 Aug 2009 17:11:10 -0300 (ADT) Received: from mail-relay.iu.edu (burns.uits.indiana.edu [129.79.1.202]) by hartman.uits.indiana.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id n73KB8Q9031052 for ; Mon, 3 Aug 2009 16:11:08 -0400 Received: from walter.slis.indiana.edu (walter.slis.indiana.edu [129.79.36.69]) (authenticated bits=0) by mail-relay.iu.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id n73KB7JC030615 for ; Mon, 3 Aug 2009 16:11:08 -0400 Cc: pgsql-php@postgresql.org Message-Id: From: Carol Walter In-Reply-To: <20090803155231.4e7da4f3.wmoran@potentialtech.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: pg_query_params version? Date: Mon, 3 Aug 2009 16:11:07 -0400 References: <6D3355E2-AF8B-4F90-8A7C-078FF2D186FB@indiana.edu> <20090803155231.4e7da4f3.wmoran@potentialtech.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.307 tagged_above=-10 required=5 tests=BAYES_00=-2.599, MISSING_HEADERS=1.292 X-Spam-Level: X-Archive-Number: 200908/5 X-Sequence-Number: 4046 Of course, I suspected that this was the problem, however, I can't change the client's PHP version, so before I made major modifications to my program, I wanted to make sure this was the problem. In my 25 year career in IT, I have occasionally run across an error message that didn't mean what it said. =) Carol On Aug 3, 2009, at 3:52 PM, Bill Moran wrote: > 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/