Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 23, 2026

Diff for phpWebLogAnalyzer/test.php between version 1.1 and 1.2

version 1.1, 2002/01/13 19:58:42 version 1.2, 2002/02/12 23:18:54
Line 1 
Line 1 
 <?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));
   
 ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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