PHP Classes

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

Recommend this page to a friend!
  Info   Example   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 176 All time: 8,768 This week: 488Up
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: 51029 in India India
Week rank: 46 Up4 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 (9)  
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 (9)  /  hc  
File Role Description
  Plain text file .htaccess Data htaccess
  Plain text file index.php Example hitcounter show

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:176
This week:0
All time:8,768
This week:488Up