I cant seem to get this to work is there something Im missing?

$logfile = '/logs/ipaccess.log';
$date = scalar localtime;

open(IPLOG, ">>$logfile") || die "Cannot open $logfile";
$ip = $ENV{'REMOTE_ADDR'};
print IPLOG "$date ";
print IPLOG "$ip \n";
close IPLOG;


Mike



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to