+ Reply to Thread
Results 1 to 3 of 3

Thread: Getting 2 Server Stats, IP Address and Browser Info

  1. #1
    sk1tL1L is offline x10Hosting Member sk1tL1L is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    59

    Getting 2 Server Stats, IP Address and Browser Info

    Here a quick tutorials on Server Stats.
    But this At the top of your page:
    PHP Code:
    <?php
    $ip 
    $_SERVER['REMOTE_ADDR'];
    $browser $_SERVER['HTTP_USER_AGENT'];
    ?>
    Then When you want to show the ip:
    PHP Code:
    <?php echo $ip ?>
    It will Show:
    PHP Code:
    485.4634.556.335 
    Lastly the Browser Stats:
    PHP Code:
    <?php echo $browser ?>
    It will Show:
    PHP Code:
    Mozilla/5.0 (WindowsUWindows NT 5.1en-USrv:1.8.0.6Gecko/20060728 Firefox/1.5.0.6 
    sk1tL1L

  2. #2
    ngocluyen is offline x10Hosting Member ngocluyen is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    2

    Re: Getting 2 Server Stats, IP Address and Browser Info

    thanks Bro :D

  3. #3
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: Getting 2 Server Stats, IP Address and Browser Info

    Thanks!
    Nice tips
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers