Re: Catch PHP warning message into PHP variable???

From: Date: Wed, 07 Apr 2004 15:44:21 +0000
Subject: Re: Catch PHP warning message into PHP variable???
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11711@lists.php.net to get a copy of this message
Scott Fletcher wrote:
Hi!
    I wanted to know is how to catch the PHP warning message that get
displayed to the screen, how to catch it and put it into the variable. --snip-- $result1 = odbc_exec($cid,"select * from customer"); --snip-- Thanks... FletchSOD You can also use object buffering:
ob_start(); $result1 = odbc_exec($cid,"select * from customer"); $msg = ob_get_contents(); ob_end_clean();

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.general (#11711) next »