Advertisement
rhcp011235

Untitled

Feb 13th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2.  
  3.     $nats_ip = '0x4dd8650a';
  4.     if (strpos($nats_ip, '0x') === 0)
  5.         {
  6.             $ip = hexdec($nats_ip);
  7.         }
  8.  
  9.     $new_ip = long2ip($ip);
  10.  
  11.         echo geoip_country_code3_by_name($new_ip);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement