"; $ip=getenv("REMOTE_ADDR"); $browser=getenv("HTTP_USER_AGENT"); $date=date("F D d \--- G:H:s"); $nombre_archivo = 'ip.txt'; $contenido = "\n $date, $ip, $browser"; if (is_writable($nombre_archivo)) { if (!$gestor = fopen($nombre_archivo, 'a')) { exit; } if (fwrite($gestor, $contenido) === FALSE) { exit; } fclose($gestor); } ?>