Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024

File: [Platon] / phpWebLogAnalyzer / test.php (download)

Revision 1.3, Thu Feb 14 20:01:04 2002 UTC (22 years, 2 months ago) by jombik9

Changes since 1.2: +2 -2 lines

Testing scripts with enable/disableRawLog() methods.

<?php

function get_mtime()
{
    $mtime = microtime();
    $mtime = explode(" ", $mtime);
    $mtime = $mtime[1] + $mtime[0];

    return $mtime;
}

$start_time = get_mtime();

include("./phpWebLogAnalyzer.inc.php");

$weblog = new Web_Log("mysql://test:test@localhost/test");

$weblog->enableRawLog();
//$weblog->disableRawLog();

$weblog->registerAccess(3);

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.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top