X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 2BEC9CB8A1 for ; Sat, 12 Jul 2003 23:21:36 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 29477-03 for ; Sat, 12 Jul 2003 23:21:22 +0000 (GMT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id 8022ECADB4 for ; Sat, 12 Jul 2003 20:21:03 -0300 (ADT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.0.6) with ESMTP-TLS id 1823247; Sat, 12 Jul 2003 15:48:38 -0700 Message-ID: <3F109698.5000709@joeconway.com> Date: Sat, 12 Jul 2003 16:15:36 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lynna Landstreet Cc: pgsql-php@postgresql.org Subject: Re: pg_query undefined? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/20 X-Sequence-Number: 2132 Lynna Landstreet wrote: > Does anyone know why trying to run a simple demo script (the one that came > with EZ_SQL from php.justinvincent.com) would be giving me an error saying > that pg_query() is an undefined function? It's a standard function built > into PHP, isn't it? It's listed in the manual... > > I know the installation of PHP at our web host does have PostgreSQL support, > because when I ran phpinfo() it seemed to say all the right things about it, > so this is really confusing me. pg_query was new in PHP 4.2: http://us3.php.net/manual/en/function.pg-query.php "pg_query (PHP 4 >= 4.2.0) Note: This function used to be called pg_exec(). pg_exec() is still available for compatibility reasons but users are encouraged to use the newer name." What version does phpinfo say your host is running? Joe