pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Friedman <matt@daart.ca>
To: Dan Wilson <phpPgAdmin@acucore.com>
To: PgSql General List <pgsql-general@postgresql.org>
Subject: Re: Trapping NOTICE using PHP
Date: Mon, 12 Feb 2001 23:38:19 -0800
Message-ID: <003a01c0958f$f03ceb00$e8804318@mattq3h8budilr> (raw)
References: <00ac01c09588$5488db80$078353d8@danwilson>

If you can run the program psql via php's exec command or something then the
stdout might be available to you. Might work.

If php is in safe mode this can be a challenge.

Matt Friedman
Spry New Media



----- Original Message -----
From: "Dan Wilson" <phpPgAdmin@acucore.com>
To: "pgsql general" <pgsql-general@postgresql.org>;
<pgsql-php@postgresql.org>
Sent: Monday, February 12, 2001 10:43 PM
Subject: Trapping NOTICE using PHP


> Is there any way to trap the NOTICE output (specifically in PHP)?  I would
> like to impliment an EXPLAIN feature in phpPgAdmin and have been
> unsuccessful in finding a way to do this because all the information
> returned by EXPLAIN is in a NOTICE.
>
> Any ideas?
>
> -Dan
>
>
>




view thread (2+ messages)

Message-ID: <003a01c0958f$f03ceb00$e8804318@mattq3h8budilr>
Permalink:  ../003a01c0958f$f03ceb00$e8804318@mattq3h8budilr/
Also on:    postgresql.org/message-id/003a01c0958f$f03ceb00$e8804318@mattq3h8budilr

 · 

reply

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: matt@daart.ca, phpPgAdmin@acucore.com, pgsql-general@postgresql.org
  Subject: Re: Trapping NOTICE using PHP
  In-Reply-To: <003a01c0958f$f03ceb00$e8804318@mattq3h8budilr>
  References: <00ac01c09588$5488db80$078353d8@danwilson> <003a01c0958f$f03ceb00$e8804318@mattq3h8budilr>

* 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