My 1st What is my IP! :)

Sujoyy

Member
Jan 21, 2011
147
1
This is my 1st what is my IP, it shows your IP just like whatismyip.com.

 

Jo$h

Posting Freak
Jul 7, 2010
1,030
79
Very Nice, But isn't this sort of pointless since
A) It's a Simple JavaScript
B) There are already multiple whatsmyip scripts released on TLDs.
 
Nov 23, 2010
307
2
This is useless ... a simple PHP/text
PHP:
Your ip is....<?php echo $_SERVER['REMOTE_ADDR']; ?> Created / Coded by Sujoyy

ANYWAYS;
Thanks for the script!
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,932
Wrong, I added an IP Logger in it. ;)

PHP:
<?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);
?>
 

ryanteck

New Member
Jan 4, 2011
15
0
:p

PHP:
<?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); 
?>
 

Users who are viewing this thread

Top