version 1.10, 2002/03/28 21:49:57 |
version 1.11, 2002/04/03 20:33:26 |
Line 26 function php_error_handler($errno, $errs |
|
Line 26 function php_error_handler($errno, $errs |
|
'message' => $errstr) |
'message' => $errstr) |
as $key => $val) { |
as $key => $val) { |
|
|
echo "<tr><td>"; |
echo "<tr><td align=left valign=top>"; |
echo "<b>".htmlspecialchars($key)."</b>"; |
echo "<b>".htmlspecialchars($key)."</b>"; |
echo "</td><td>"; |
echo "</td><td>"; |
echo htmlspecialchars($val); |
echo nl2br(htmlspecialchars($val)); |
echo "</td></tr>"; |
echo "</td></tr>"; |
} |
} |
|
|
Line 38 function php_error_handler($errno, $errs |
|
Line 38 function php_error_handler($errno, $errs |
|
|
|
function pear_error_handler($err_obj) |
function pear_error_handler($err_obj) |
{ |
{ |
$error_string = $err_obj->getMessage() . ' | ' . $err_obj->getDebugInfo(); |
$error_string = $err_obj->getMessage() . "\n" . $err_obj->getDebugInfo(); |
trigger_error($error_string, E_USER_ERROR); |
trigger_error($error_string, E_USER_ERROR); |
} |
} |
|
|
Line 49 include("./phpWebLogAnalyzer.inc.php"); |
|
Line 49 include("./phpWebLogAnalyzer.inc.php"); |
|
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'pear_error_handler'); |
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->enableTruncateNames(); |
$weblog->enableTruncateNames(); |
$weblog->enableRawLog(); |
$weblog->enableRawLog(); |
//$weblog->disableRawLog(); |
$weblog->disableRawLog(); |
|
|
//$weblog->disableProperty('session_id'); |
//$weblog->disableProperty('session_id'); |
$weblog->registerAccess(3); |
$weblog->registerAccess(3); |