X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id D7A41CC481 for ; Tue, 15 Jul 2003 19:35:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 04750-01 for ; Tue, 15 Jul 2003 19:35:39 +0000 (GMT) Received: from smtp.electroniccity.org (smtp.electroniccity.org [207.219.15.18]) by svr1.postgresql.org (Postfix) with ESMTP id 576C0CC47F for ; Tue, 15 Jul 2003 16:35:11 -0300 (ADT) Received: from [172.16.2.153] (d2-153.electroniccity.org [172.16.2.153]) by smtp.electroniccity.org (Postfix) with ESMTP id 2F8FADF21D; Tue, 15 Jul 2003 15:32:34 -0500 (EST) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Tue, 15 Jul 2003 15:38:42 -0400 Subject: Re: pg_query undefined? From: Lynna Landstreet To: Cornelia Boenigk , Message-ID: In-Reply-To: <000a01c348cb$7e260e10$a86efea9@zwerg2000> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/23 X-Sequence-Number: 2135 on 7/12/03 7:15 PM, Cornelia Boenigk at poppcorn@cornelia-boenigk.de wrote: > If you run phpinfo() you can see the PHP version. > > pg_query() is supported since PHP 4.2.0 > > If your PHP is older than this use pg_exec() instead. Aha - that would be it! Thank you! I just checked phpinfo and it says it's 4.1.2. I can do a global find and replace to turn all instances of pg_query into pg_exec in the ez_sql script I downloaded, but now I wonder if there will be other functions that have changed between versions as well. Guess the only way to find out is to try. *sigh* Yet another reason to loathe and despise the web host I'm stuck with here. I could ask them to upgrade their PHP installation, but given that they never answered my request to upgrade PostgreSQL a month ago (they're still running 7.2), or my *four* requests (well, the same request sent four times) for a working cgi-bin directory, or about 75% of any other tech support requests I've sent them, I'm not holding out too much hope for this one. Can anyone recommend a *good* web host that supports PHP and PostgreSQL? One that's affordable enough for a small non-profit art gallery? Thanks, Lynna -- Resource Centre Database Coordinator Gallery 44 www.gallery44.org