PHP Classes

File: visitor_statistics.php

Recommend this page to a friend!
  Classes of Olaf Lederer   Counter & visitor statistics   visitor_statistics.php   Download  
File: visitor_statistics.php
Role: Application script
Content type: text/plain
Description: Use this file for your visitor statistics
Class: Counter & visitor statistics
System to track users and visitor statistics
Author: By
Last change:
Date: 18 years ago
Size: 1,065 bytes


Class file image Download

$stats = new Count_visitors;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Show Visitors (test application)</title>
<h1>Visitor statistics (example)</h1>
<table width="480" border="1" cellspacing="2" cellpadding="2">
    <td width="20%">First visit at: </td>
    <td width="35%"><?php echo $stats->first_last_visit("first"); ?></td>
    <td width="20%">Visits today: </td>
    <td><?php echo $stats->show_visits_today(); ?></td>
    <td>Last visit at: </td>
    <td><?php echo $stats->first_last_visit("last"); ?></td>
    <td>Total visits: </td>
    <td><?php echo $stats->show_all_visits(); ?></td>
<?php echo $stats->stats_country(); ?>
echo $stats->stats_totals(); ?>
echo $stats->stats_monthly(11, 2004); ?>