free web site traffic and promotion

Thursday, 5 July 2012

"What is my ip?" Page source in PHP...the basics

Here is the basic's to making your own IP Chicken type page for users to retrieve their ip addy..

Copy Code!
____________________________________________________________
<?php       echo ' <p> Your IP address is '.$_SERVER['REMOTE_ADDR'].' </p>';   echo ' <p> Your hostname (if any) is '.gethostbyaddr($_SERVER['REMOTE_ADDR']).' </p>'; ?>
 ______________________________________________________________

0 comments:

Post a Comment