| verzia 1.15, 2002/04/26 23:02:57 |
verzia 1.16, 2002/09/04 02:28:14 |
| Riadok 62 function pear_error_handler($err_obj) |
|
| Riadok 62 function pear_error_handler($err_obj) |
|
| error_reporting (E_ALL ^ E_NOTICE); |
error_reporting (E_ALL ^ E_NOTICE); |
| set_error_handler('php_error_handler'); |
set_error_handler('php_error_handler'); |
| |
|
| include("./phpWebLogAnalyzer.inc.php"); |
require_once './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'); |
|
|
| echo("<hr>Processing time: " |
echo("<hr>Processing time: " |
| . sprintf("%.2f", get_mtime() - $start_time)); |
. sprintf("%.2f", get_mtime() - $start_time)); |
| |
|
| |
$debug = isset($HTTP_GET_VARS['debug']) ? $HTTP_GET_VARS['debug'] : 0; |
| |
if (intval($debug) > 0) { |
| |
ob_start(); |
| |
var_dump($weblog->_props); |
| |
$contents = ob_get_contents(); |
| |
ob_end_clean(); |
| |
echo '<hr><pre>'; |
| |
echo htmlspecialchars($contents); |
| |
echo '</pre>'; |
| |
} |
| |
|
| echo("<hr>Click <a href=\"$PHP_SELF\">here</a> to get HTTP refferer work."); |
echo("<hr>Click <a href=\"$PHP_SELF\">here</a> to get HTTP refferer work."); |
| |
echo("<br>Click <a href=\"$PHP_SELF?debug=1\">here</a> to get <code>var_dump()</code> of all variables."); |
| |
|
| $weblog->destroy(); |
$weblog->destroy(); |
| |
|