Iv also tried this, but cant get that to work either.
<?php
# Makes a picture and sets size in pixels
$image = ImageCreate(600, 300);
# Specifies colors
for($i=0; $i<255; $i++) {
$background_color = ImageColorAllocate($image, $i, $i, $i);
}
$text_color = ImageColorAllocate($image, 255, 255, 255);
# Writes text with the coordinates below
$tekst = "Text using the php image function.";
ImageString($image, 4, 30, 50, "$tekst", $text_color);
# Prints out all the figures and picture and frees memory
header('Content-type: image/png');
ImagePNG($image);
imagedestroy($image);
?>