PHP Classes

PHP Hit Counter Widget: Count user visits and display in a image widget

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 176 This week: 1All time: 8,761 This week: 560Up
Version License PHP version Categories
hcw 1.0.0Freeware5.4HTML, PHP 5, Graphics, User Management
Description 

Author

This class count user visits and display in a image widget.

It can record the accesses of site visitors in a MySQL database.

The class can also generate an image for a widget that displays the number of visitors of the site pages.

The image widget details like font color, font style, font, background color can be configured.

Picture of Vishv Sahdev
  Performance   Level  
Name: Vishv Sahdev <contact>
Classes: 13 packages by
Country: India India
Age: 52
All time rank: 51530 in India India
Week rank: 109 Up9 in India India Up
Innovation award
Innovation award
Nominee: 7x

Example

<?
require("HCW_class.php");
require(
"HCW_config.php");


    if(isset(
$_POST['ok']) && $_POST['ok'] == "ok"){
   
$hcw->transfer($_POST);
    }
    else
   
$hcw->ar['mc']='';
   
   
$hcw->ar['font']=$hcw->findTTF();
   
    if(
is_file("./template/HCW_template.php")){
            echo
$hcw->render_temp("./template/HCW_template.php",$hcw->ar);
    }


   


  hitcounterExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Files folder imagehc (2 files)
Files folder imagetemplate (2 files)
Plain text file HCW_class.php Class hit counter widget class
Plain text file HCW_config.php Conf. config
Plain text file HCW_example.php Example example
Plain text file HCW_SQL.txt Data SQL Example
Plain text file HCW_widget.php Example widget

  Files folder image Files  /  hc  
File Role Description
  Plain text file .htaccess Data htaccess
  Plain text file index.php Example hitcounter show

  Files folder image Files  /  template  
File Role Description
  Plain text file HCW_cutpaste.php Aux. template file
  Plain text file HCW_template.php Aux. template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:176
This week:1
All time:8,761
This week:560Up