Click to See Complete Forum and Search --> : Interesting error message when trying to use GD


Anon
11-08-2000, 07:55 PM
Greetings!

I am running PHP Version 4.0.3pl1 under PWS 4.0 on a Windows NT sp 5 box. Whenever I try to run the quick and dirty sample code in the ImageCreateFromJPEG() function documentation, I get:

Warning: Unknown list entry type in request shutdown (768248) in Unknown on line 0


My code is:

<?php

$iname = "Image1.jpg";
LoadJpeg($iname);
function LoadJpeg ($imgname) {
$im = @ImageCreateFromJPEG ($imgname); /* Attempt to open */
if (!$im) { /* See if it failed */
$im = ImageCreate (150, 30); /* Create a blank image */
$bgc = ImageColorAllocate ($im, 255, 255, 255);
$tc = ImageColorAllocate ($im, 0, 0, 0);
ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc);
/* Output an errmsg */
ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc);
}
return $im;
}


?>



Other arbitrary php code works just fine.

Anyone have an idea of how to fix this?

Thanks in advance,
--Desmond