Re: Trapping NOTICE using PHP

From: "Matt Friedman" <matt(at)daart(dot)ca>
To: "Dan Wilson" <phpPgAdmin(at)acucore(dot)com>, "PgSql General List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trapping NOTICE using PHP
Date: 2001-02-13 07:38:19
Message-ID: 003a01c0958f$f03ceb00$e8804318@mattq3h8budilr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-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(at)acucore(dot)com>
To: "pgsql general" <pgsql-general(at)postgresql(dot)org>;
<pgsql-php(at)postgresql(dot)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
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matt Friedman 2001-02-13 07:44:09 Vacuum and Owner
Previous Message Dan Wilson 2001-02-13 06:43:51 Trapping NOTICE using PHP

Browse pgsql-php by date

  From Date Subject
Next Message Julio Cuz, Jr. 2001-02-16 17:32:06 How do I import this?
Previous Message Dan Wilson 2001-02-13 06:43:51 Trapping NOTICE using PHP