Code Library - php
IP Logger - (2209 views)
create a file named ips.txt and CHMOD it to 0666
<?
//grab the IP
$v_ip = $SERVER['REMOTE_ADDR'];
//set the date
$v_date = date("l d F H:i:s");
//open the file and write the IP + date
$fp = fopen("ips.txt", "a");
fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");
//close the file
fclose($fp);
?>


