File: index.php

Recommend this page to a friend!
  Classes of Ettore Moretti  >  PHP Click Counter Database  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Click Counter Database
Generate links and keep track of clicks on them
Author: By
Last change:
Date: 4 years ago
Size: 711 bytes


require_once 'core/CCounter.class.php';
$CC=new CCounter();
<title>Click Counter Example</title>


<h1>Click Counter PHP - Example use</h1>
<p>Click a link to increase the relative counter.</p>

<a href="<?php print_r($CC::getHref('link1.html')); ?>" target="_blank">Link1</a><br/>
<a href="<?php print_r($CC::getHref('link2.html')); ?>" target="_blank">Link2</a><br/>
<a href="<?php print_r($CC::getHref('link3.html')); ?>" target="_blank">Link3</a><br/>
<a href="<?php print_r($CC::getHref('link4.html')); ?>" target="_blank">Link4</a><br/>
<a href="<?php print_r($CC::getHref('link5.html')); ?>" target="_blank">Link5</a> (404 page, link broken example)

For more information send a message to info at phpclasses dot org.