Login   Register  
PHP Classes
elePHPant
Icontem

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Full name  >  x64 Simple Counter  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: A simple example
Class: x64 Simple Counter
Count site visits using flat files
Author: By
Last change:
Date: 8 years ago
Size: 371 bytes
 

Contents

Class file image Download
<?php

require_once("x64_simple_counter.php");

$counter=new x64_simple_counter('example2_counter_data.php',60*15);
$times=$counter->auto(true);

?>
<html>
<head>
<title>Example2</title>
</head>
<body>
There are <?php echo $times?> visitors online<br/>
<font size="1">Statistics are based on the last <?php echo ($counter->expire/60); ?> minutes.</font>
</body>
</html>