<!-- This Script is from www.hawkee.com, found at www.phpfreecode.com-->
<?php
$counterfile = "count.dat";
if(!($fp = fopen($counterfile,"r"))) die ("cannot open counter file");
$count = (int) fread($fp, 20);
fclose($fp);
$count++;
echo "Hit counter: $count";
$fp = fopen($counterfile, "w");
fwrite($fp , $count);
fclose($fp);
?>
<br><font face="Tahoma"><a target="_blank"
href="http://www.phpfreecode.com/"><span style="font-size: 8pt;
text-decoration: none">
PHP Free Code</span></a></font>
0 nhận xét:
Đăng nhận xét