<?php $time = date("d.m.Y G:i.s"); $ip = $_SERVER['REMOTE_ADDR']; $fd = fopen("ip.txt", "a+");/// fwrite($fd, "$time---$ip\n"); fclose($fd); ?> <html> <body> <h2 align="center"> <div align="center"> Your IP is <script src="http://comp-info.ru/serves/ip/"></script>.</div></h2> </body> </html>