<?php if (gethostbyaddr($_SERVER['REMOTE_ADDR']) != null) { $counterDB = "hits.dat"; $hits = file($counterDB); $current = $hits[0]++; $handle = fopen($counterDB , "w"); fputs($handle , $current); fclose($handle); echo '<b>Hits: '.number_format($current).'</b>'; } ?>
Jump To Top of Thread