Jump to content

getimagesize() Seed Problem


smc

Recommended Posts

Hello everyone,

 

My website is having a problem with getimageize. To be quite honest I've never seen this before, it is part of the topsites website:

 

Warning: getimagesize(http://mydomain.com/topsitelogo.png) [function.getimagesize]: could not make seekable - 
http://www.mydomain.com/topsitelogo.png in /home/user/public_html/topsite/sources/misc/classes.php on line 190

 

Any ideas? I'm not quite sure the problem, is there something I need to enable?

 

Thanks!

-Smc

Link to comment
https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/
Share on other sites

<?php

    elseif ($CONF['max_banner_width'] && $CONF['max_banner_height'] && ini_get('allow_url_fopen')) {
      $size = getimagesize($FORM['banner_url']);
      if ($size[0] > $CONF['max_banner_width'] || $size[1] > $CONF['max_banner_height']) {
        $error_banner_url = 1;
      }
      if (!isset($size[0]) && !isset($size[1])) { $error_banner_url = 1; }
    }

?>

 

I'm inclined to believe it is more server side, though, because this is an Open source application that is widely distributed.

it appears that $FORM['banner_url'] is a URL. is that so? if so, i'm not sure that getimagesize() is valid on a URL. i do a lot of GD work, but someone may know better for sure.

 

that is: the argument to getimagesize() should be a file path, not a URL.

 

eh, I appear to be wrong about not being able to pull a URL... sorry.  ::)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.