title: getimagesize() error in php
body: <p>So I am using the getimagesize function to get the size of the image. The line I use is the following:</p>
  
  <pre><code>list($width, $height) = getimagesize($imagen); 
  </code></pre>
  
  <p>The variable $imagen is the right one as if I echo it, I get the image url, and the image does exist.
  any idea?Edit: allow_url_fopen  is on and the error I get is the following:</p>
  
  <pre><code>Warning: getimagesize(): Couldn't resolve host name in /home/u969736199/public_html/web/productos.php on line 43 Warning: getimagesize(http://snapi2.vv.si/web/images/productos/R2203054.jpg): failed to open stream: operation failed in /home/u969736199/public_html/web/productos.php on line 43 http://snapi2.vv.si/web/images/productos/R2203054.jpg
  </code></pre>
  
  <p>What I get from var_export($imagen); and var_export(is_readable($imagen)); is:
  <a href="http://snapi2.vv.si/web/images/productos/EE523152.jpg" rel="nofollow">http://snapi2.vv.si/web/images/productos/EE523152.jpg</a>'<a href="http://snapi2.vv.si/web/images/productos/EE523152.jpg" rel="nofollow">http://snapi2.vv.si/web/images/productos/EE523152.jpg</a>'false</p>