Source for file log_errors.php
Documentation is available at log_errors.php
@include '../include_path.php';
* Natural Horizontal ProgressBar example with blue skin.
* Logs errors on file (with full context)
* and browser display (restricted context)
* @version $Id: log_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['handler']['file'] = array (
'name' => 'progress.log',
'ident' => $_SERVER['REMOTE_ADDR']
/* only class-method context will be display on message error of browser screen
but full context will be written in file logger
Recommanded for production WebSite
$logger['handler']['display'] = array (
'printf' => '<b>%s </b>: %s in <b>%s</b>',
'ereg' => 'in (.*) \(file (.*) at line (.*)\)'
$bar = new HTML_Progress ($logger);
$bar->setAnimSpeed (10000 );
<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:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|