Getimagesize and imagepng()
Posted: Mon Feb 09, 2009 5:31 am
Heya, I have a script which creates and saves an image:
Afterwards, when I go to Vbulletin and enter: http://XXX/images/signatures/3819.gif I get following error:
Code: Select all
function create_image(){
// User data
$message1 = 'TEXT';
$message2 = 'TEXT';
$message3 = 'TEXT';
$message4 = 'TEXT';
$message5 = 'TEXT';
$im = imagecreatefromgif("./images/signatures/default1.gif") or die("Cannot Initialize new GD image stream");
$text = imagecolorallocate($im, 0, 0, 0); // text colour
imagestring($im, 2, 10, 23, $message1, $text);
imagestring($im, 2, 10, 33, $message2, $text);
imagestring($im, 2, 10, 43, $message3, $text);
imagestring($im, 2, 10, 53, $message4, $text);
imagestring($im, 2, 10, 63, $message5, $text);
imagepng($im,"./images/signatures/".$_SESSION['uid'].".png");
imagedestroy($im);
}So, how to fix? =)Warning: getimagesize(http://XXX/images/signatures/3819.gif) [function.getimagesize]: failed to open stream: Connection timed out in /profile.php(1189) : eval()'d code on line 10