PHP remote image opening in browser but imagecreatefromgif : failed to open stream: operation failed
<p>I run a shopping site and am trying to save a copy of this remote gif image to my server as jpg.</p>

<pre><code>$i='http://www.medexsupply.com/images/RO1R910C.GIF';

$imagejpg = imagecreatefromgif($i);
</code></pre>

<p>and it gives following errors :</p>

<pre><code>Warning: imagecreatefromgif(): Couldn't resolve host name in /home/xxxxx/public_html/xxxxxxx/file.php on line 46

Warning: imagecreatefromgif(http://www.medexsupply.com/images/RO1R910C.GIF): failed to open stream: operation failed in /home/xxxxx/public_html/xxxxxxx/file.php on line 46
</code></pre>

<p>on line 46, the code is 
<code>$imagejpg = imagecreatefromgif($i);</code></p>

<p>I have dedicated server with 128MB memory limit for php scripts.</p>

<p>allow_url_fopen is on.</p>

<p>I can modify any setting on my server.</p>

<p>I could copy thousands of other remote images but not this image and images from some other sites.</p>

<p>Can someone help.</p>

<p>Please reply if you would like to know more information.</p>

<p>Thank you</p>
