23
July

Grab IP Address With a small php script

Introduction In this tutorial, I’ll be showing you how to grab someone’s IP address using PHP. Unlike most tutorials, I’ll be showing you what each part of the code means! The Simple Way This PHP code will simply print the visitor’s IP address onto the page. PHP Code: <?php print ($_SERVER[‘REMOTE_ADDR’]; //prints the IP on the page (Obviously) ?> Printing The Visitor’s IP […]