Codice PHP:
$file = "./log.txt";
$ua = $_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['REMOTE_ADDR'];
$row = $ip."::".$ua."\n";
$res = fopen($file, "a");
fwrite($res, $row);
![]()
Codice PHP:
$file = "./log.txt";
$ua = $_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['REMOTE_ADDR'];
$row = $ip."::".$ua."\n";
$res = fopen($file, "a");
fwrite($res, $row);
![]()