Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: formatting php warnings


Message #1 by "Vincent, Justin" <J.Vincent@e...> on Tue, 12 Nov 2002 17:59:00 -0000
Nikolai Devereaux wrote:

>>Does anyone know how to suppress warnings from 
>>standard output yet still capture them and output 
>>them in a customized formatted fashion?
>>    
>>
>
>You can use the output buffering functions to control where output goes.
>
>  http://www.php.net/outcontrol
>
>
>A very simple example:
>
>ob_start();
>OCIParse($this->dbh, $query);
>$errors = ob_get_contents();
>ob_end_clean();
>
>
>take care,
>
>nik
>
>
>  
>
or you can register your own error handling function with:

set_error_handler();

http://www.php.net/manual/en/ref.errorfunc.php






  Return to Index