Manoel_br_rj
12-21-2004, 11:36 PM
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 IHDRPLTE r`LIDATxc`aML1q7 Ȳ[ @Ee!ϼ;=6 ~]QM l7g1l,/-̱ۆ
... 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.
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 IHDRPLTE r`LIDATxc`aML1q7 Ȳ[ @Ee!ϼ;=6 ~]QM l7g1l,/-̱ۆ
... 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.