-
SonniE's iP LoGGER
All Written By Me you will need to make this a php document and then create a file on the same directory called iplogsource.txt
Wana Test it?
whatsmyip.php
and the log is
iplogsource.txt
Code:
<html>
<body bgcolor="red">
<?php
echo "Your iP iS: ";
echo $_SERVER['REMOTE_ADDR'];
$ip = $_SERVER['REMOTE_ADDR'];
$myFile = "iplogsource.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "------------------------------------------";
fwrite($fh, $stringData);
$time = date("r");
fwrite($fh, $time);
$Space = "\n";
fwrite($fh, $Space);
$stringData = $ip;
fwrite($fh, $ip);
$stringData = "\n";
fwrite($fh, $stringData);
$stringData = "\n";
fwrite($fh, $stringData);
fclose($fh);
?>
</html>
-
lol clear it quick, i forgot to use a proxy, damn some1s gonna send me loads of trojans.
-
lol =P muhahaha i get ur ip anyway i get every1 who signs up
-
-
-
-
-
hey, im kind of just peeking around this site for some things, and well i have one question about this thread, and i want to know what this does....Thanks:BL:
-
help
wat does actually do??? :confused:
is it like for like getting online on spdm??? :confused:
plz help :(:(
-
its pretty much in the title it logs ip address's simple example in php