RE: Get friend's IP easily and innocently :P 05-02-2013, 06:13 AM
#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:i");
$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)

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.


");![[+]](https://sinister.li/images/modern/collapse_collapsed.png)