Monday, December 13, 2010

PHP Find my IP address Script

This is the simple script for findiong my IP Address by using PHP

By using this script you agree that we will not be held responsible for any damages to you or your business or website

For more scripts, tutorials, free Cpanel hosting and all round webmaster resources


<? 

  $host = $_SERVER["HTTP_HOST"];

  $userip = $_SERVER['REMOTE_ADDR']; 

  $vis_ip = $_SERVER["REMOTE_ADDR"]; 

  $user_agent = $_SERVER["HTTP_USER_AGENT"]; 

  ?>

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <html xmlns="http://www.w3.org/1999/xhtml">

  <head>

  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

  <title>Free Check My IP Script - Sharemyphp</title>

  <style type="text/css">

  <!--

  body {

background-color: #0086DF;

}body,td,th {

  font-family: Geneva, Arial, Helvetica, sans-serif;

  font-size: 12px;

  color: #666666;

  }

  .title {

  font-size: 36px;

  font-weight: bold;

  }

  .show {

  font-size: 14px;

  }

  -->

  </style>

  </head>

  <body>

  <table width="487" height="238" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>

  <td width="488" height="238" align="center" valign="middle" background="images/bg.png"><table width="100%" border="0" cellspacing="2" cellpadding="5">

  <tr>

  <td align="center" class="title">Check My IP</td>

  </tr>

  <tr>

  <td>Below is the IP address that is connecting you to the internet, every computer or server must have a IP address to contect to the would wide web.</td>

  </tr>

  <tr>

  <td height="37" class="show"><strong>Your IP address is:</strong> <? echo "".$userip.""; ?> </td>

  </tr>

  <tr>

  <td class="show">Place your ads here </td>

  </tr>

  <tr>

  <td><span class="show"><strong>Your browser is:</strong> <? echo "".$user_agent."";?></span></td>

  </tr>

  </table></td>

  </tr>

  </table>

  <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>

  <td align="center">Copyright &copy; <? echo date("Y");?>

  <? echo "".ucfirst($host)."";?> </td>

  </tr>

  </table>

  </body>

  </html>

By PHP with No comments

0 comments:

Post a Comment

    • Popular
    • Categories
    • Archives