PHP Classes

File: count_example.php

Recommend this page to a friend!
  Classes of Olaf Lederer   Counter & visitor statistics   count_example.php   Download  
File: count_example.php
Role: Example script
Content type: text/plain
Description: example for using (visitor count)
Class: Counter & visitor statistics
System to track users and visitor statistics
Author: By
Last change: Please read the documentation file about all new features.
Date: 18 years ago
Size: 445 bytes


Class file image Download
include($_SERVER['DOCUMENT_ROOT']."/classes/count_visitors/count_visitors_class.php"); //classes is the map where the class file is stored

// create a new instance of the count_visitors class.
$my_visitors = new Count_visitors;

$my_visitors->delay = 1; // how often (in hours) a visitor is registered in the database (default = 1 hour)
$my_visitors->insert_new_visit(); // That's all, the validation is with this method, too.