IP LOgger in | |PHP | |
Written by OpenMindLeader on 6:34 AMHere is a simple piece of php code which can be added in your website to log the visitor's ip address.Here is the code
$v_ip = $REMOTE_ADDR;
$v_date = date("l d F H:i:s");
$fp = fopen("ips.txt", "a");
fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");
fclose($fp);
?>
0 comments: Responses to “ IP LOgger in | |PHP | | ”