Duniaweb Blog

Your Interner Life Partner

Script PHP Informasi Anda – IP – Proxy – Koneksi

Ini adalah script untuk membuat tampilan “informasi anda” seperti yang ada di website duniaweb.wordpress.com, dalam script ini akan menampilkan :

1. ip
2. proxy
3. koneksi

Silahkan memodifikasi script ini

<?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 background=”img/ket_2.jpg”>
<img src=”img/h_3.jpg” class=”menu_kanan”><b>Informasi Anda</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>Koneksi:</b></span><br> <span style=”padding-left:5px;”><?php echo $via; ?></span>
</td>
</tr>

</tr>
</table>

Thanks,
Belajar PHP, PHP lagi dan PHP Lagi🙂

September 20, 2008 - Posted by | Tutorial PHP

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: