Test
<?php
$logfile= ‘ip.html’;
$IP = $_SERVER['REMOTE_ADDR'];
$logdetails= date(“F j, Y, g:i a O T“) . ‘: ‘ . ‘’ .$_SERVER['REMOTE_ADDR'].’’;
$fp = fopen($logfile, “a“); fwrite($fp, $logdetails); fwrite($fp, “
“); fclose($fp); echo(“Your IP has been logged. It is $IP“); ?>
“); fclose($fp); echo(“Your IP has been logged. It is $IP“); ?>