![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/03/2008, 18:09
|
![Avatar de ElJavista](http://static.forosdelweb.com/customavatars/avatar171379_2.gif) | Colaborador | | Fecha de Ingreso: marzo-2007 Ubicación: Lima Perú
Mensajes: 2.231
Antigüedad: 17 años, 11 meses Puntos: 67 | |
Re: Problemas con codigo para obtener IP del visitante y guardarla en un *.txt Pues sería así:
<?php
$Fich = "ip.txt";
$fh = fopen($Fich, 'a') or die("Error!!");
fwrite($fh, "IP: " . $_SERVER["REMOTE_ADDR"]."\r\n");
fclose($fh);
?> |