PHP Classes

File: example.php

Recommend this page to a friend!
  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: 14 years ago
Size: 370 bytes


Class file image Download

$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);