More PHP script…

with 1 Comment

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);

One Response

  1. Peter
    |

    I like the new look!

    Have fun in Hawaii!

    Love,

    Peter

Leave a Reply