From: Joe Conway <mail@joeconway.com>
To: Lynna Landstreet <lynna@gallery44.org>
Cc: pgsql-php@postgresql.org
Subject: Re: pg_query undefined?
Date: Sat, 12 Jul 2003 16:15:36 -0700
Message-ID: <3F109698.5000709@joeconway.com> (raw)
In-Reply-To: <BB3609D4.544%lynna@gallery44.org>
References: <BB3609D4.544%lynna@gallery44.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: mail@joeconway.com, lynna@gallery44.org
Subject: Re: pg_query undefined?
In-Reply-To: <3F109698.5000709@joeconway.com>
References: <BB3609D4.544%lynna@gallery44.org> <3F109698.5000709@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox