Simple IP/Country

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple IP/Country

    There is a simple way to get ur visitors country info frm his/her ip... Just use the code

    PHP Code:
    <?php
        $IP 
    $_SERVER['REMOTE_ADDR'];
        
    $country file_get_contents('http://api.hostip.info/country.php?ip='.$IP);
        
        echo 
    $IP.'/'.$country;

    ?>
    ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

    #2
    Originally posted by wap-ruler View Post
    There is a simple way to get ur visitors country info frm his/her ip... Just use the code

    PHP Code:
    <?php
        $IP 
    $_SERVER['REMOTE_ADDR'];
        
    $country file_get_contents('http://api.hostip.info/country.php?ip='.$IP);
        
        echo 
    $IP.'/'.$country;

    ?>
    Its not Good Coz it gv 60% of Accurate value

    Comment

    Working...
    X