Getting the IP of you visitors is an easy task in PHP. You find the information in the $_SERVER array:
print "Your IP is ".$_SERVER['REMOTE_ADDR']."";
This will show your public IP adress.
Every now and then I need to check my own public IP so I put this very simple page togheter: Check your IP
0 Comments.