Echo Park

Posted
30 May 2010 @ 2am

No Comments Yet

PHP: Showing IP Addresses

This little bit of PHP will show the IP address of your visitors. Here’s what it looks like:

Step 01.

Copy the code under.
<?php echo "Your IP address is: " . $_SERVER["REMOTE_ADDR"]; ?>

Step 02.

Now paste it where you want it on your page and your done! Simple!


Back to Home