get the request time and ip address
$myFile = "Test.txt";
$fh = fopen($myFile, 'r+') or die("can't open file");
fwrite($fh, $_SERVER['REMOTE_HOST']);
fclose($fh);
echo $_SERVER['REMOTE_ADDR'];
I need to send this page to a person and get back his IP and connection
date and time as you can see I know how to get the IP and save it to the
test file but I also need to know when this IP connect to the page(date
and time).
How I can do that?
No comments:
Post a Comment