What's wrong in this code ?
I want to display the image, but the code results in a broken image. (White box, with a red 'X' in it.....)
function gfx($random_num) {
global $module_name;
$image = ImageCreateFromJPEG("modules/$module_name/images/code_bg.jpg");
$text_color = ImageColorAllocate($image, 0, 255, 0);
Header("Content-type: image/jpeg");
ImageString ($image, 5, 3, 2, $random_num, $text_color);
ImageJPEG($image, '', 75);
ImageDestroy($image);
// echo "$random_num";
die();
PHP version installed : 4.3.2
Apache : 1.3.28 (Unix)
Thanks in advance...