Your ip is....<?php echo $_SERVER['REMOTE_ADDR']; ?> Created / Coded by Sujoyy
This is useless ... a simple PHP/textPHP:Your ip is....<?php echo $_SERVER['REMOTE_ADDR']; ?> Created / Coded by Sujoyy
ANYWAYS;
Thanks for the script!
Wrong, I added an IP Logger in it.
<?php
echo 'Hello, your IP address is: <span style="font-weight: bold;">'.$_SERVER['REMOTE_ADDR'].'</span>!';
$getIncoming = fopen('incoming.txt', 'r'); $incoming = fread($getIncoming, filesize('incoming.txt')); fclose($getIncoming);
$addIncoming = fopen('incoming.txt', 'w'); fwrite($addIncoming, $_SERVER['REMOTE_ADDR']."\n".$incoming); fclose($addIncoming);
?>
<?php
$logfile= '/full_path_to/log.html';
$IP = $_SERVER['REMOTE_ADDR'];
$logdetails= date("F j, Y, g:i a") . ': ' . '<a href=http://dnsstuff.com/tools/city.ch?ip='.$_SERVER['REMOTE_ADDR'].'>'.$_SERVER['REMOTE_ADDR'].'</a>';
$fp = fopen($logfile, "a");
fwrite($fp, $logdetails);
fwrite($fp, "<br>");
fclose($fp);
?>
Wrong, I added an IP Logger in it.