More PHP script…


I found this code useful recently to track statistically how many people are blocking javascript from executing on their system. It also acts as a basic logger for IPs and hostnames that are hitting your website…

$handling = fopen(”ips.html”, ‘a’);
$StringData = date(’Y.m.d H:i:s’).”,”.$_SERVER[’REMOTE_ADDR’].”,”.gethostbyaddr($_SERVER[’REMOTE_ADDR’]).”n”;
fwrite($handling, $StringData);
fclose($handling);
  1. #1 by Peter on June 4, 2007 - 9:04 am

    I like the new look!

    Have fun in Hawaii!

    Love,

    Peter

(will not be published)