Source for file display_errors.php
Documentation is available at display_errors.php
@include '../include_path.php';
* Natural Horizontal ProgressBar example with blue skin.
* Display errors only on browser screen with full context
* @version $Id: display_errors.php,v 1.1 2004/07/05 21:31:06 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
// don't die if the error is an exception (as default callback)
$logger['pushCallback'] = '_pushCallback'; // don't die when an exception is thrown
$logger['display_errors'] = 'off'; // turn off browser screen output
$logger['handler']['display'] = array (
'printf' => '<b>%s</b>: %s <br/>'
. '[class="%s" method="%s" file="%s" line="%s"]'
'ereg' => 'in (.*)::(.*) \(file (.*) at line (.*)\)'
$bar = new HTML_Progress ($logger);
$bar->setAnimSpeed ('100'); // < - - - will generate an API error
die ('<h1>Catch PEAR_ErrorStack Exception error </h1>');
<title>FileLogger Progress example</title>
<?php echo $bar->getStyle (); ?>
background-color: #EEEEEE;
font-family: Verdana, Arial;
a:visited, a:active, a:link {
<script type="text/javascript">
<?php echo $bar->getScript (); ?>
<h1> <?php echo basename(__FILE__ ); ?></h1>
<p><< <a href="../index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 13:52:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|