Login   Register  
PHP Classes
elePHPant
Icontem

File: count_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2005-02-03 13:22
Size: 445 bytes
 

Contents

Class file image Download
<?php
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.
?>