function ip(){ if (!empty($_SERVER['HTTP_CLIENT_IP'])) return $_SERVER['HTTP_CLIENT_IP']; if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) return $_SERVER['HTTP_X_FORWARDED_FOR']; return $_SERVER['REMOTE_ADDR']; } touch('ip_log.txt'); $ip = ip(); $fh = fopen('ip_log.txt','a'); fwrite($fh,$ip."\n"); fclose($fh); $data = $_SERVER['HTTP_USER_AGENT']; $myfile = fopen('ip_log.txt','a'); fwrite($myfile,$data."\n"); fclose($myfile);

مادرت مرد

?