Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No such host is known
<p>This is my code bellow:</p>

<pre><code>$ip_data = json_decode(file_get_contents("http://geoplugin.net/json.gp?ip=119.82.67.243"));
echo "&lt;pre&gt;"; 
print_r($ip_data);
die;
</code></pre>

<p>When I run this 2 different on 1 system its ok but on second system its giving error </p>

<blockquote>
  <p>Warning: file_get_contents(): php_network_getaddresses: getaddrinfo
  failed: No such host is known</p>
</blockquote>

<p>I have already checked <code>allow_url_fopen=On</code> is on both system so please suggest some other soln...thanks </p>