smc Posted October 17, 2007 Share Posted October 17, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/ Share on other sites More sharing options...
BlueSkyIS Posted October 17, 2007 Share Posted October 17, 2007 can we see the code that caused the error? Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-371992 Share on other sites More sharing options...
smc Posted October 17, 2007 Author Share Posted October 17, 2007 <?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. Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-371994 Share on other sites More sharing options...
BlueSkyIS Posted October 18, 2007 Share Posted October 18, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-371996 Share on other sites More sharing options...
BlueSkyIS Posted October 18, 2007 Share Posted October 18, 2007 well, if you type this into google, you can find a lot of sites exhibiting the problem: php getimagesize could not make seekable Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-372000 Share on other sites More sharing options...
smc Posted October 18, 2007 Author Share Posted October 18, 2007 Lol yeah I saw the tons of sites that have the problem but none with the fix >< Does something need to be enabled in PHP? Also it should be said I'm working with PHP 5 Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-372002 Share on other sites More sharing options...
BlueSkyIS Posted October 18, 2007 Share Posted October 18, 2007 i'm not familiar with this problem. first: what operating system, specific PHP 5 version may help. does it happen on all URLs or only certain ones? Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-372004 Share on other sites More sharing options...
smc Posted October 18, 2007 Author Share Posted October 18, 2007 Linux - PHP Version 5.2.4 - Yup Quote Link to comment https://forums.phpfreaks.com/topic/73721-getimagesize-seed-problem/#findComment-372015 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.