Getting 2 Server Stats, IP Address and Browser Info

sk1tL1L

New Member
Messages
59
Reaction score
0
Points
0
Here a quick tutorials on Server Stats.
But this At the top of your page:
PHP:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$browser = $_SERVER['HTTP_USER_AGENT'];
?>
Then When you want to show the ip:
PHP:
<?php echo $ip ?>
It will Show:
PHP:
485.4634.556.335
Lastly the Browser Stats:
PHP:
<?php echo $browser ?>
It will Show:
PHP:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6

sk1tL1L
 
Top