Trapping NOTICE using PHP

Started by Dan Wilsonabout 25 years ago2 messagesgeneral
Jump to latest
#1Dan Wilson
phpPgAdmin@acucore.com

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

#2Matt Friedman
matt@daart.ca
In reply to: Dan Wilson (#1)
Re: Trapping NOTICE using PHP

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

Show quoted text

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