PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of kalo  >  User online and hits  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: simple exemple
Class: User online and hits
Keep track of site visitors and page hits in MySQL
Author: By
Last change:
Date: 6 years ago
Size: 370 bytes
 

Contents

Class file image Download
<?php

   
require_once("configuration.php");
    require_once(
"class.database.php");
    require_once(
"class.visitors.php");
   
   
$visitor = new visitors();
   
// display online users, no parameters
   
echo $visitor->display();
   
   
// display hits
   
echo $visitor->display(1);
   
   
// display online users, same as without parameters
   
echo $visitor->display(2);

?>