Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set('Europe/Madrid');
- $fecha = getdate();
- $hora = ($fecha["mday"]."/". $fecha["mon"]."/". $fecha["year"]." - ". $fecha["hours"].":". $fecha["minutes"]."";
- $txt="La ip:".$_SERVER['REMOTE_ADDR']." ha entrado: ".$hora." Con el navegador:".$_SERVER['HTTP_USER_AGENT'];
- $fd = fopen ("visitas.txt", "a" or
- die("Problemas en la conexion");
- fputs($fd,"\n");
- fputs($fd,$txt);
- fclose($fd);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement