in reply to Simple script not being executed when html page loads.

A few pointers: Having said all of that, here is the CGI script rewritten:
use strict; use warnings; use CGI qw(header); my $file = '/full/file/path/to/ip.log'; open LOG, '>>', $file or die "can't open ip log: $!\n"; print LOG "$ENV{REMOTE_ADDR}\n"; print header('image/png');
You do want to call the CGI script via it's URL, not it's file path. Good luck. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)