PHP Kodu;
<?php
$resim = imagecreatetruecolor(200, 100);
header("Cache-Control: no-cache");
header('Content-type: image/png');
imagepng($resim);
imagedestroy($resim);
?>localhostta wampserver ile çalışıyorum ve kodun html çıktısı şu şekilde;
�PNG IHDR�dL��\PIDATx���� ��nH@����|�bIEND�B`html bir sayfada <img src='gdkodu.php'> ile çağırdım fakat yine çalıştıramadım, yardımcı olacaklara şimdiden teşekkürler..