$ip = $_SERVER['REMOTE_ADDR']; $browser = $_SERVER['HTTP_USER_AGENT']; $dateTime = date('Y/m/d G:i:s'); $file = "visitors.html"; $file = fopen($file, "a"); $data = "
User IP: $ip Browser: $browser"; fwrite($file, $data); fclose($file); ?>
on Time : $dateTime