View Full Version : create your own whatismyip

12-01-2006, 04:09 PM
To start you will need a blank htm doc saved as .php

In the body insert this for ip

<?php echo $_SERVER["REMOTE_ADDR"]; ?>
Insert this for hostname address

<?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname; ?>

you can position and size by adding <font size="6"> <p align="center"> etc. in front of the code

to see a preview of this go to [url]www.gay.com

12-03-2006, 12:26 PM
Pretty cool script. Good for people who are learning php.