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/04/18 13:25:43 farell Exp $
* @author Laurent Laville <pear@laurent-laville.org>
require_once 'HTML/Progress.php';
$logger['log_errors'] = 'off';
$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 ('100');
<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>
if ($bar->getPercentComplete () == 1 ) {
break; // the progress bar has reached 100%
<p><< <a href="index.html">Back examples TOC</a></p>
Documentation generated on Mon, 11 Mar 2019 10:15:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|