More PHP script…

Posted by Andrew Flanagan

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);
Share and Enjoy:
  • Digg
  • Sphinn
  • Mixx
  • Google
  • Fark
  • Furl
  • StumbleUpon

Andrew Flanagan on May 23rd 2007 in Actual Events, Geekiness

One Response to “More PHP script…”

  1. Peter responded on 04 Jun 2007 at 9:04 am #

    I like the new look!

    Have fun in Hawaii!

    Love,

    Peter

Trackback URI | Comments RSS

Leave a Reply