<?php
header ( 'Content-type: image/png' );
$im = @imagecreate ( 400, 50 ) or die ( 'GD nie jest obsługiwane' );
$background_color = imagecolorallocate ( $im, 255, 255, 0 );
$text_color = imagecolorallocate ( $im, 233, 14, 91 );
imagestring ( $im, 5, 5, 5, 'ten serwer obsługuje GD', $text_color );
imagestring ( $im, 4, 170, 25, 'wszystko zrobiłes dobrze ;-)', $text_color );
imagepng ( $im );
imagedestroy ( $im );
?>