Please, Somebody can help me? and tell me where did I wrong?
I write :
<?php
header ("Content-type: image/png");
$img_handle = ImageCreate(230, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate($img_handle, 233, 114, 191);
ImageString($img_handle, 31, 5, 5, "Meu primeiro Programa com GD", $txt_color);
ImagePNG($img_handle);
?>
And I get :
‰PNG IHDRæ£þÓêPLTE ér¿ŽLàIDATxœca€ML1qÛ7 Ȳ[ È@•ýÂE“e»ñ±!ϼ;ñÁÃ=6 ·~]Q³MžýðÑ l7g¶1ËæÝlð,Á¾/-Íò̱ۆ
... and any script I wrote, instead of pictures, I got a lot of chars.
ps. I running Windows 98 SE, PHP 5.0.0 with php_gd2.dll loaded.