Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for phpWebLogAnalyzer/test.php between version 1.6 and 1.7

version 1.6, 2002/02/28 20:35:47 version 1.7, 2002/03/18 23:24:37
Line 1 
Line 1 
 <?php  <?php
   
   //error_reporting (E_ALL ^ E_NOTICE);
   
   // this function will handle all errors reported by PHP
   function php_error_handler($errno, $errstr, $errfile, $errline)
   {
           echo "<table bgcolor=lightblue>";
           echo "<tr><th colspan=2>";
           echo "This is nice error";
           echo "</th></tr>";
   
           foreach(array(
                                   'file' => $errfile,
                                   'line' => $errline,
                                   'code' => $errno,
                                   'message' => $errstr)
                           as $key => $val) {
   
                   echo "<tr><td>";
                   echo "<b>".htmlspecialchars($key)."</b>";
                   echo "</td><td>";
                   echo htmlspecialchars($val);
                   echo "</td></tr>";
           }
   
           die();
   }
   
   set_error_handler ('php_error_handler');
   
   function pear_error_handler($err_obj)
   {
           $error_string = $err_obj->getMessage() . ' | ' . $err_obj->getDebugInfo();
   
           trigger_error($error_string, E_USER_ERROR);
   }
   
 function get_mtime()  function get_mtime()
 {  {
         $mtime = microtime();          $mtime = microtime();
Line 13  $start_time = get_mtime();
Line 49  $start_time = get_mtime();
   
 include("./phpWebLogAnalyzer.inc.php");  include("./phpWebLogAnalyzer.inc.php");
   
   PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'pear_error_handler');
   
 $weblog = new Web_Log("mysql://test:test@localhost/test");  $weblog = new Web_Log("mysql://test:test@localhost/test");
   
 $weblog->enableRawLog();  $weblog->enableRawLog();

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top