Re: Catch PHP warning message into PHP variable???
| From: | Sérgio Carvalho | 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:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Hi!ob_start(); $result1 = odbc_exec($cid,"select * from customer"); $msg = ob_get_contents(); ob_end_clean();I wanted to know is how to catch the PHP warning message that getdisplayed 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:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc