debug NOTICE without disturbing browser
| From: | Pedro Garre | Date: | Thu, 18 Apr 2002 19:07:39 +0000 |
| Subject: | debug NOTICE without disturbing browser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93508@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,
If you want to see NOTICE errors, but not in the browser:
- Set your own error_handler as described in the documentation
- And include these lines:
if ( ( $errno == E_USER_NOTICE ) || ( $errno == E_NOTICE ) )
system ("echo $errno $errortype[$errno] $errmsg $filename $linenum |
write pedro pts/0" );
else
echo "<br>=========><br>$err <br><br>";
It will send a message to user pedro.
Pedro.