<?php // Create a 100*30 image $im = imagecreate(100, 30); // White background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // Write the string at the top left imagestring($im, 5, 0, 0, 'Hello world!', $textcolor); // Output the image imagepng($im); imagedestroy($im); ?>
po wyswietleniu strony wyskakuje zamiast obrazka coś takiego �PNG
W czym tkwi problem?

Sprawdzałem czy na serwerze posiadam biblioteke GD takim oto kodem:
<?php ?>
Wynikiem tego było: Array ( [GD Version] => 2.0 or higher [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => 1 [GIF Read Support] => 1 [GIF Create Support] => 1 [JPG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => [JIS-mapped Japanese Font Support] => )
Z góry dziękuję za pomoc.