Rozdiely pre phpWebLogAnalyzer/test.php medzi verziami 1.1 a 1.2
| verzia 1.1, 2002/01/13 19:58:42 |
verzia 1.2, 2002/02/12 23:18:54 |
|
|
| <?php |
<?php |
| |
|
| |
function get_mtime() |
| |
{ |
| |
$mtime = microtime(); |
| |
$mtime = explode(" ", $mtime); |
| |
$mtime = $mtime[1] + $mtime[0]; |
| |
|
| |
return $mtime; |
| |
} |
| |
|
| |
$start_time = get_mtime(); |
| |
|
| include("./phpWebLogAnalyzer.inc.php"); |
include("./phpWebLogAnalyzer.inc.php"); |
| |
|
| $weblog = new Web_Log("mysql://test:test@localhost/test"); |
$weblog = new Web_Log("mysql://test:test@localhost/test"); |
| |
|
| |
//$weblog->enableRawLog(); |
| |
$weblog->disableRawLog(); |
| |
|
| $weblog->registerAccess(3); |
$weblog->registerAccess(3); |
| |
|
| echo "<hr>Session count: " . $weblog->getSessionsCount(array('http_user_agent' => '%Lynx%')) . "<br>"; |
echo("<hr>Session count: " |
| |
. $weblog->getSessionsCount(array('http_user_agent' => '%Lynx%')) |
| |
. "<br>"); |
| |
|
| |
echo("<hr>Processing time: " |
| |
. sprintf("%.2f", get_mtime() - $start_time)); |
| |
|
| ?> |
?> |
Platon Group <platon@platon.sk> http://platon.sk/
|
|