PHP Classes

File: example1.php

Recommend this page to a friend!
  Classes of Full name   x64 Simple Counter   example1.php   Download  
File: example1.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: 18 years ago
Size: 454 bytes
 

Contents

Class file image Download
<?php

require_once("x64_simple_counter.php");

$counter=new x64_simple_counter();
$times=$counter->auto();
$counted=$counter->already_counted();
?>
<html>
<head>
<title>Example1</title>
</head>
<body>
<?php if($counted) { ?>Welcome back<?php }else{ ?>Hello<?php } ?> visitor.<br>
<center><font size="1">This page has been visited <?php echo $times; ?> times since <?php echo date("m/d/Y g:i:s A",$counter->since_time); ?></font></center>
</body>
</html>