Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip = $_SERVER['REMOTE_ADDR'];
- $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>:: Título Aqui ::</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="description" content="Discovery you Ip and Hostname, Descubra seu Ip e seu Hostname">
- <meta name="keywords" content="get ip, find ip, qual é meu ip, meu ip, meuip, search my ip, descobrir meu ip">
- <meta name="author" content="">
- <style type="text/css" >
- * { padding:0; margin:0;}
- body {background-color:#ffffff; font-family:arial, helvetica,sans-serif; font-size:15px;}
- #conteudo {
- margin: 0 auto;
- border:1px solid #00386e;
- width:500px;
- background-color:#ffffff;
- margin-top:233px;
- }
- #tabela {
- text-align:center;
- color:#00386e;
- width:100%;
- }
- #tabela td {border-bottom:1px dotted #00386e; hegth:30px;}
- #tabela td:hover {background-color:#637dba !important; color:#ffffff;}
- </style>
- </head>
- <body>
- <div id="conteudo" >
- <table id="tabela" >
- <tr>
- <td style="background-color:#c0d5fe;"><strong>My IP</strong></td>
- </tr>
- <tr>
- <td><?php echo $ip; ?></dt>
- </tr>
- <tr>
- <td style="background-color:#c0d5fe;"><strong>My Hostname</strong></td>
- </tr>
- <tr>
- <td><?php echo $hostname; ?></dt>
- </tr>
- </table>
- </div>
- </body>
- </html>
RAW Paste Data