Monday, December 7, 2009

PHP Script For Your Connection Info - IP - Proxy

PHP Script For Your Connection Info - IP - Proxy
Hi all coding freak... In this PHP Tutorial, i will show you how to make connection info as shown by the picture...

The information on the picture is not complete, because i'm using localhost :D





This is a script to create the look "your information". In this script will display:

1. IP
2. Proxy
3. Connection

You may modify this script




<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
$uri = $_SERVER['REQUEST_URI'];
$user = $_SERVER['PHP_AUTH_USER'];
$ip = $_SERVER['REMOTE_ADDR'];
$ref = $_SERVER['HTTP_REFERER'];
$proxy = $_SERVER['HTTP_X_FORWARDED_FOR'];
$via = $_SERVER['HTTP_VIA'];
?>

<table width="140" border="0" style="border-collapse:collapse;">

<tr>
<td>
<b>Your Information</b>:
</td>
</tr>

<tr>
<td>
<span><b>IP:</b></span><br> <span style="padding-left:5px;"><?php echo $ip; ?></span>
</td>
</tr>

<tr>
<td>
<span><b>Proxy:</b></span><br> <span style="padding-left:5px;"><?php echo $proxy; ?></span>
</td>
</tr>

<tr>
<td>
<span><b>Connection:</b></span><br> <span style="padding-left:5px;"><?php echo $via; ?></span>
</td>
</tr>

</tr>
</table>


That's all....PHP is quite easy right?

Related Posts by Categories



1 comments:

Anonymous said...

Just letting you know that your 'energy saving' black screen uses more energy on flatscreens. Barely anyone uses CRT screens, where it would save a tiny amount.

White is the colour to use to save energy. Look it up.

Post a Comment

Maybe this is what you looking for

 

Subscribe Now

Followers

IT Skill is not enough... Copyright © 2009 Designed by Bie Blogger Template