PHP file() generates error: failed to open stream
<p>I have a script with line:   </p>

<pre><code>$id = strtolower(implode('',file($ip_service . $ip)));
</code></pre>

<p>When executed the file function will be like file(<a href="http://www.url.com/filename.php?119.160.120.38" rel="nofollow">http://www.url.com/filename.php?119.160.120.38</a>)</p>

<p>On server A it works fine but on Server B it gives following error:</p>

<p><code>file(<a href="http://www.url.com/filename.php?xxx.xxx.xxx.xxx)" rel="nofollow">http://www.url.com/filename.php?xxx.xxx.xxx.xxx)</a> [function.file]: failed to open stream: Connection timed out in /home/path/filename.php on line 22</code></p>

<p>Line 22 is the above line of code.  </p>

<p>Server A has PHP 4.4.6, Server B has 4.4.8  </p>

<p>Any help will be highly appreciated.</p>
