Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Get friend's IP easily and innocently :P filter_list
Author
Message
RE: Get friend's IP easily and innocently :P #2

PHP Script for gathering IP Address, Date-Time, and Page viewed.

Quote:

x----------------------------x------------------------------x---------------------------x-------------------------x

<?php
$ip = $_SERVER['REMOTE_ADDR'];
$page = $_SERVER['REQUEST_URI'];
$datetime = date("d-m-y / H:iConfused");
$writedata = $datetime . " - " . $ip . " - " . $page . "<br />";
$fopen = fopen("log.txt", "a");
fwrite($fopen, $writedata);
fclose($fopen);
?>

x----------------------------x------------------------------x---------------------------x-------------------------x

Hope this worked for you ! (Those who need this script) Smile
You can this script to any html page and rename it to .php. this will work fine and create a .TXT file on webserver containing the data collected while processing page.
[Image: cooltext980231940.gif]

Reply





Messages In This Thread