title: How to get mobile country code using ip address in php
body: <p>I have to get the mobile country code based on ip i.e,
  For India => 91, England => 41 etc. I have used below code but its not working.</p>
  
  <p>Code,</p>
  
  <pre><code>$ip = $_SERVER['REMOTE_ADDR'];
  $data = file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $ip);
  $data = json_decode($data);
  </code></pre>