Archive for May, 2007

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 Comment »

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

Spellcheck

I have a spelling checker,
It came with my PC;
It plainly marks four my revue
Mistakes I cannot sea.
I’ve run this poem threw it,
I’m sure you’re please too no,
It’s letter perfect in it’s weight,
My checker tolled me sew.

-Anonymous 

2 Comments »

Andrew Flanagan on May 21st 2007 in Geekiness

Sunrise/sunset code?

It appears that the PHP bug has mysteriously righted itself? If so, great! If it’s still flipping between two different hours, oh well…

1 Comment »

Andrew Flanagan on May 8th 2007 in Geekiness