pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedTrapping NOTICE using PHP
2+ messages / 2 participants
[nested] [flat]
* Trapping NOTICE using PHP
@ 2001-02-13 06:43 Dan Wilson <phpPgAdmin@acucore.com>
2001-02-13 07:38 ` Re: Trapping NOTICE using PHP Matt Friedman <matt@daart.ca>
0 siblings, 1 reply; 2+ messages in thread
From: Dan Wilson @ 2001-02-13 06:43 UTC (permalink / raw)
To: pgsql general <pgsql-general@postgresql.org>; pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Trapping NOTICE using PHP
2001-02-13 06:43 Trapping NOTICE using PHP Dan Wilson <phpPgAdmin@acucore.com>
@ 2001-02-13 07:38 ` Matt Friedman <matt@daart.ca>
0 siblings, 0 replies; 2+ messages in thread
From: Matt Friedman @ 2001-02-13 07:38 UTC (permalink / raw)
To: Dan Wilson <phpPgAdmin@acucore.com>; PgSql General List <pgsql-general@postgresql.org>
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
>
>
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-02-13 07:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13 06:43 Trapping NOTICE using PHP Dan Wilson <phpPgAdmin@acucore.com>
2001-02-13 07:38 ` Matt Friedman <matt@daart.ca>
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