Showing posts with label What is my IP PHP Script - IP Checker PHP Script. Show all posts
Showing posts with label What is my IP PHP Script - IP Checker PHP Script. Show all posts

What is my IP PHP Script - IP Checker PHP Script

This is how to make a simple what is my ip website. This code will show the visitors IP address. It is very simple to apply this code to your website. I have made a left and a center position for this script. You can change the font style but please dont change the php code.  Read the instructions below on how to install this script.

You can change color="#FF3300" to color="yourcolor"  by choosing a web safe color from here http://www.december.com/html/spec/colorsafe.html

You can change face="courier"  to  face="yourfont" by choosing a web safe font from here
http://www.angelfire.com/fl5/html-tutorial/fontlist.htm

You can change size="3"  to size="yourfontsize"

Center position
<font size="3" color="#FF3300" face="courier">
<?php
####################################################
# whatismyip-address.blogspot.com                  #
# Please do not change anything inside the php code#
####################################################
$ip = getenv("REMOTE_ADDR") ;
Echo "<center>Your <a style='text-decoration:none' href='http://whatismyip-address.blogspot.com'>IP</a> is";
Echo "<br />";
Echo $ip . "</center>" ;
?>
</font>

Left position
<font size="3" color="#FF3300" face="courier">
<?php
####################################################
# whatismyip-address.blogspot.com                  #
# Please do not change anything inside the php code#
####################################################
$ip = getenv("REMOTE_ADDR") ;
Echo "Your <a style='text-decoration:none' href='http://whatismyip-address.blogspot.com'>IP</a> is";
Echo "<br />";
Echo $ip;
?>
</font>

Instructions:
Step 1: Choose a file with a .php extension open it and copy one of the codes above.
Step 2: Place the code anywhere between the body tags like this.

<html>
<head>
</head>
<body>
Place php code anywhere here
</body>
</html>

Step 3: Click save. Your Done!