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
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.

Link to comment
Share on other sites

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.  ::)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.