This is the PHP Function to display your visitor's IP Address:
First, its important that you have php. If you don't have php, we recommend you buy a php plan from our friends at www.webune.com they have great PHP hosting plans for your domain name or website.
[This post sponsered by www.webune.com]
Ok, that's all you need - PHP hosting. Once you know you have php, you can continue, otherwise, if you don't, this script will not work unless the script is parsed by PHP engine.
1. the first step in this tutorial guide is to copy and past the sample code below to your favorite editor, I will be using notepad.exe in Windows for this simple tutorial. So, copy and paste this code:
Code:
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
echo $_SERVER['REMOTE_ADDR'];
?>
2. Now save this file as "show-ip.php", if you are using notepad, make sure to put the quotes ( " ) when Saving As
3. Now upload the show-ip.php file to your hosting space on your website which has PHP.
our friends at www.webune.com have provided us with PHP hosting to bring you a demo of this script.
CLICK HERE TO SEE DEMO
IF you found this tutorial helpful, we would appreciate a word of mouth to your friends about wallpaperama or link back to wallpaperama.com